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

Commit ed429127 authored by Jackal Guo's avatar Jackal Guo Committed by Android (Google) Code Review
Browse files

Merge "Remove unpaired AccessibilityEvent"

parents 11ba3119 43be3112
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -809,13 +809,9 @@ class TouchExplorer extends BaseEventStreamTransformation

        // Announce the end of the gesture recognition.
        sendAccessibilityEvent(AccessibilityEvent.TYPE_GESTURE_DETECTION_END);
        // Don't announce the end of a the touch interaction if users didn't lift their fingers.
        if (interactionEnd) {
            // Announce the end of a the touch interaction.
            sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END);
        } else {
            // If gesture detection is end, but user doesn't release the finger, announce the
            // transition to exploration state.
            sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START);
        }

        mExitGestureDetectionModeDelayed.cancel();
@@ -1151,10 +1147,7 @@ class TouchExplorer extends BaseEventStreamTransformation
        public void run() {
            // Announce the end of gesture recognition.
            sendAccessibilityEvent(AccessibilityEvent.TYPE_GESTURE_DETECTION_END);
            // Clearing puts is in touch exploration state with a finger already
            // down, so announce the transition to exploration state.
            clear();
            sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_START);
        }
    }