Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6286496f authored by chchao's avatar chchao Committed by android-build-merger
Browse files

In AccessibilityGestureDetector.clear(), dispatch a MotionEvent.ACTION_CLEAR...

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

Change-Id: I3dde2a0a3a21830b08611c642725e5477c35a8f4
parents 0b219985 e613d108
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -341,6 +341,8 @@ class AccessibilityGestureDetector extends GestureDetector.SimpleOnGestureListen
        mDoubleTapDetected = false;
        mDoubleTapDetected = false;
        mSecondFingerDoubleTap = false;
        mSecondFingerDoubleTap = false;
        mGestureStarted = false;
        mGestureStarted = false;
        mGestureDetector.onTouchEvent(MotionEvent.obtain(0L, 0L, MotionEvent.ACTION_CANCEL,
                0.0f, 0.0f, 0));
        cancelGesture();
        cancelGesture();
    }
    }