Merge "In AccessibilityGestureDetector.clear(), dispatch a MotionEvent.ACTION_CLEAR event to mGestureDetector to cancel the ongoing gesture." into nyc-mr1-dev

This commit is contained in:
Chao Chen
2016-09-19 21:52:05 +00:00
committed by Android (Google) Code Review

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