Loading services/java/com/android/server/accessibility/TouchExplorer.java +21 −27 Original line number Diff line number Diff line Loading @@ -333,24 +333,18 @@ class TouchExplorer implements EventStreamTransformation { // The event for gesture end should be strictly after the // last hover exit event. if (mTouchExplorationGestureEnded) { switch (eventType) { case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: { if (mTouchExplorationGestureEnded && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { mTouchExplorationGestureEnded = false; sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END); } break; } } // The event for touch interaction end should be strictly after the // last hover exit and the touch exploration gesture end events. if (mTouchInteractionEnded) { switch (eventType) { case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: { if (mTouchInteractionEnded && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { mTouchInteractionEnded = false; sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); } break; } } // If a new window opens or the accessibility focus moves we no longer Loading Loading
services/java/com/android/server/accessibility/TouchExplorer.java +21 −27 Original line number Diff line number Diff line Loading @@ -333,24 +333,18 @@ class TouchExplorer implements EventStreamTransformation { // The event for gesture end should be strictly after the // last hover exit event. if (mTouchExplorationGestureEnded) { switch (eventType) { case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: { if (mTouchExplorationGestureEnded && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { mTouchExplorationGestureEnded = false; sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_EXPLORATION_GESTURE_END); } break; } } // The event for touch interaction end should be strictly after the // last hover exit and the touch exploration gesture end events. if (mTouchInteractionEnded) { switch (eventType) { case AccessibilityEvent.TYPE_VIEW_HOVER_EXIT: { if (mTouchInteractionEnded && eventType == AccessibilityEvent.TYPE_VIEW_HOVER_EXIT) { mTouchInteractionEnded = false; sendAccessibilityEvent(AccessibilityEvent.TYPE_TOUCH_INTERACTION_END); } break; } } // If a new window opens or the accessibility focus moves we no longer Loading