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

Commit 02872bb9 authored by Phil Weaver's avatar Phil Weaver
Browse files

Properly manage explore by touch helper state

When a hover exit happens, update state if a virtual
view is being hovered over. Whether or not it has
accessibility focus is not relevant.

Bug: 78008262
Test: atest CtsAccessibilityServiceTestCase
Change-Id: I09038c3daefa766c9276d309c52e4737b2c413d6
parent f257498d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ public abstract class ExploreByTouchHelper extends View.AccessibilityDelegate {
                updateHoveredVirtualView(virtualViewId);
                return (virtualViewId != INVALID_ID);
            case MotionEvent.ACTION_HOVER_EXIT:
                if (mFocusedVirtualViewId != INVALID_ID) {
                if (mHoveredVirtualViewId != INVALID_ID) {
                    updateHoveredVirtualView(INVALID_ID);
                    return true;
                }