In AccessibilityGestureDetector.clear(), dispatch a MotionEvent.ACTION_CLEAR event to mGestureDetector to cancel the ongoing gesture.
am: 37ee5c796e
Change-Id: I0f76484c70e08435494f9e9ff1223082c9a3ceac
This commit is contained in:
@@ -341,6 +341,8 @@ class AccessibilityGestureDetector extends GestureDetector.SimpleOnGestureListen
|
||||
mDoubleTapDetected = false;
|
||||
mSecondFingerDoubleTap = false;
|
||||
mGestureStarted = false;
|
||||
mGestureDetector.onTouchEvent(MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_CANCEL,
|
||||
0.0f, 0.0f, 0));
|
||||
cancelGesture();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user