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

Commit 09eca82b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clean up usage of flag reset_hover_event_timer_on_action_up" into main

parents 2458fad6 af0567da
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.