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

Commit 2948d93d authored by Robert Snoeberger's avatar Robert Snoeberger Committed by Automerger Merge Worker
Browse files

Merge "Revert "Exception if receive move withouth down"" into rvc-dev am:...

Merge "Revert "Exception if receive move withouth down"" into rvc-dev am: b1d2c794 am: 10ec898b am: da72ee3c am: 4a3a8981

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11694777

Change-Id: Idc276d91f167edc2c6dea7e7b5bb14e511467f77
parents b69052f0 4a3a8981
Loading
Loading
Loading
Loading
+0 −14
Original line number Diff line number Diff line
@@ -288,11 +288,6 @@ public class GestureDetector {
     */
    private VelocityTracker mVelocityTracker;

    /**
     * True if the detector can throw exception when touch steam is unexpected .
     */
    private boolean mExceptionForTouchStream;

    /**
     * Consistency verifier for debugging purposes.
     */
@@ -472,8 +467,6 @@ public class GestureDetector {
        mTouchSlopSquare = touchSlop * touchSlop;
        mDoubleTapTouchSlopSquare = doubleTapTouchSlop * doubleTapTouchSlop;
        mDoubleTapSlopSquare = doubleTapSlop * doubleTapSlop;
        mExceptionForTouchStream = context != null
                && context.getApplicationInfo().targetSdkVersion >= Build.VERSION_CODES.R;
    }

    /**
@@ -646,13 +639,6 @@ public class GestureDetector {
                break;

            case MotionEvent.ACTION_MOVE:
                if (mExceptionForTouchStream && !mStillDown) {
                    throw new IllegalStateException("Incomplete event stream received: "
                            + "Received ACTION_MOVE before ACTION_DOWN. ACTION_DOWN must precede "
                            + "ACTION_MOVE following ACTION_UP or ACTION_CANCEL, or when this "
                            + "GestureDetector has not yet received any events.");
                }

                if (mInLongPress || mInContextClick) {
                    break;
                }