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

Commit 7d4d9ab9 authored by ryanlwlin's avatar ryanlwlin Committed by Automerger Merge Worker
Browse files

[DO NOT MERGE] Clear properties after interaction is ended am: 1145db5d

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

Change-Id: Ibef78f85305755c392573374944c12d1238df357
parents c06a5dab 1145db5d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -322,6 +322,12 @@ class EventDispatcher {
        return true;
    }

    void clear() {
        mLongPressingPointerId = -1;
        mLongPressingPointerDeltaX = 0;
        mLongPressingPointerDeltaY = 0;
    }

    public void clickWithTouchEvents(MotionEvent event, MotionEvent rawEvent, int policyFlags) {
        final int pointerIndex = event.getActionIndex();
        final int pointerId = event.getPointerId(pointerIndex);
+1 −0
Original line number Diff line number Diff line
@@ -809,6 +809,7 @@ public class TouchExplorer extends BaseEventStreamTransformation

                // Announce the end of a the touch interaction.
                mAms.onTouchInteractionEnd();
                mDispatcher.clear();
                mDispatcher.sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END);

            } break;