Created
March 20, 2017 15:39
-
-
Save tcw165/8b974d4a3a334fb068dc64213e1e1920 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void cancelSelfTouchEvent(MotionEvent event) { | |
final MotionEvent canceledEvent = MotionEvent.obtain(event); | |
canceledEvent.setAction(MotionEvent.ACTION_CANCEL); | |
onTouchEvent(canceledEvent); | |
canceledEvent.recycle(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment