annotation.SetLocked(true); not worked well - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC: annotation.SetLocked(true); not worked well

annotation.SetLocked(true); 2 years 3 months ago #11541

  • mrawy
  • mrawy's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
annotation.SetLocked(true)
not worked well with the Ink ??? please advices.
you can't move the rect but you move the ink in the rect.

Please Log in or Create an account to join the conversation.

annotation.SetLocked(true); not worked well 2 years 3 months ago #11542

  • mrawy
  • mrawy's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 0
annotation.SetLocked(true)
not worked well with the Ink ??? please advices.
you can't move the rect but you move the ink in the rect.

Please Log in or Create an account to join the conversation.

annotation.SetLocked(true); 2 years 3 months ago #11547

  • nermeen
  • nermeen's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 865
  • Karma: 23
  • Thank you received: 70
You can fix this by modifiying PDFLayoutView.onTouchAnnot as follows:
case MotionEvent.ACTION_MOVE:
        if( m_annot_rect0 != null )
	...
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
	if( m_annot_rect0 != null )
         ....
To:
case MotionEvent.ACTION_MOVE:
	if( m_annot_rect0 != null && !m_annot.IsLocked())
	...
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
	if( m_annot_rect0 != null && !m_annot.IsLocked())
          ....
Note: this will be included in the next versions

Please Log in or Create an account to join the conversation.

Last edit: by nermeen.
  • Page:
  • 1
Powered by Kunena Forum