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

Commit af0567da authored by Ameer Armaly's avatar Ameer Armaly
Browse files

Clean up usage of flag reset_hover_event_timer_on_action_up

Bug: 326260351
Test: atest TouchExplorerTest AccessibilityGestureDetectorTest
Change-Id: I7da568bbde6be82d17eae8164cd7ce7dde9d1508
parent 760a44e4
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -852,11 +852,9 @@ public class TouchExplorer extends BaseEventStreamTransformation
        final int pointerIdBits = (1 << pointerId);
        if (mSendHoverEnterAndMoveDelayed.isPending()) {
            // If we have not delivered the enter schedule an exit.
            if (Flags.resetHoverEventTimerOnActionUp()) {
            // We cancel first to reset the time window so that the user has the full amount of
            // time to do a multi tap.
            mSendHoverEnterAndMoveDelayed.repost();
            }
            mSendHoverExitDelayed.post(event, rawEvent, pointerIdBits, policyFlags);
        } else {
            // The user is touch exploring so we send events for end.
@@ -1601,7 +1599,7 @@ public class TouchExplorer extends BaseEventStreamTransformation
                                + " pointers down.");
                return;
            }
            if (Flags.resetHoverEventTimerOnActionUp() && mEvents.size() == 0) {
            if (mEvents.size() == 0) {
                return;
            }
            // Send an accessibility event to announce the touch exploration start.