Share Share
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Here you should submit your bug reports with logcat.
  • Page:
  • 1

TOPIC:

annotation.SetLocked(true); 8 years 10 months ago #11541

  • mrawy
  • mrawy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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 8 years 10 months ago #11542

  • mrawy
  • mrawy's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • 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); 8 years 10 months ago #11547

  • nermeen
  • nermeen's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Posts: 962
  • Thank you received: 87
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