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

Commit c19b5a83 authored by Gavin Williams's avatar Gavin Williams
Browse files

Autoclick Tests: Fix pausing in scroll mode

When pausing autoclick, don't directly call "exitScrollMode()"
because that reverts back to left click.

Demo: http://b/423918214#comment4

Bug: 423918214
Test: atest AutoclickControllerTest
Flag: com.android.server.accessibility.enable_autoclick_indicator
Change-Id: I50e3ef1cd4bb0fb5be3b5c5d22060eaa49cc090e
parent 35669e44
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -188,7 +188,10 @@ public class AutoclickController extends BaseEventStreamTransformation {
                    if (paused) {
                        cancelPendingClick();
                        if (mActiveClickType == AUTOCLICK_TYPE_SCROLL) {
                            exitScrollMode();
                            if (mAutoclickScrollPanel != null) {
                                mAutoclickScrollPanel.hide();
                            }
                            stopContinuousScroll();
                        }
                    }
                }