In AccessibilityGestureDetector.clear(), dispatch a MotionEvent.ACTION_CLEAR event to mGestureDetector to cancel the ongoing gesture. am: 37ee5c796e

am: 60948808a8

Change-Id: Ia49f549e7021b1812e9919871ac438d00afdb02a
This commit is contained in:
chchao
2016-09-20 04:45:36 +00:00
committed by android-build-merger

View File

@@ -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();
}