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

Commit 4a4a9404 authored by Gavin Williams's avatar Gavin Williams
Browse files

a11y: Clear autoclick indicator after movement

Clear the autoclick indicator whenever the user moves the mouse enough
to reset the click timer.

Before & After demos: http://b/409788317#comment2

Bug: b/409788317
Test: AutoclickControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: Ie292456b2e2dda5566a9ec46d1c1a53146b70406
parent 6f2cae43
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -622,6 +622,8 @@ public class AutoclickController extends BaseEventStreamTransformation {
            // update scheduled time.
            // update scheduled time.
            if (mIndicatorCallbackActive
            if (mIndicatorCallbackActive
                    && scheduledShowIndicatorTime > mScheduledShowIndicatorTime) {
                    && scheduledShowIndicatorTime > mScheduledShowIndicatorTime) {
                // Clear any existing indicator.
                mAutoclickIndicatorView.clearIndicator();
                mScheduledShowIndicatorTime = scheduledShowIndicatorTime;
                mScheduledShowIndicatorTime = scheduledShowIndicatorTime;
                return;
                return;
            }
            }