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

Commit 009ccfba authored by Alan Viverette's avatar Alan Viverette Committed by Android (Google) Code Review
Browse files

Merge "Intercept abnormal MotionEvent in GestureDetector#onTouchEvent"

parents 56fe9580 9f45a12c
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -653,7 +653,7 @@ public class GestureDetector {
                break;
                break;


            case MotionEvent.ACTION_MOVE:
            case MotionEvent.ACTION_MOVE:
                if (mInLongPress || mInContextClick) {
                if ((mCurrentDownEvent == null) || mInLongPress || mInContextClick) {
                    break;
                    break;
                }
                }


@@ -736,6 +736,9 @@ public class GestureDetector {
                break;
                break;


            case MotionEvent.ACTION_UP:
            case MotionEvent.ACTION_UP:
                if (mCurrentDownEvent == null) {
                    break;
                }
                mStillDown = false;
                mStillDown = false;
                MotionEvent currentUpEvent = MotionEvent.obtain(ev);
                MotionEvent currentUpEvent = MotionEvent.obtain(ev);
                if (mIsDoubleTapping) {
                if (mIsDoubleTapping) {