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

Commit 1ae69b6f authored by Gavin Williams's avatar Gavin Williams Committed by Android (Google) Code Review
Browse files

Merge "Autoclick: Fix Autoclick dragging" into main

parents 2b19041a 0b89d5fd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1393,6 +1393,7 @@ public class AutoclickController extends BaseEventStreamTransformation {
                            mLastMotionEvent.getFlags());
            MotionEvent pressEvent = MotionEvent.obtain(downEvent);
            pressEvent.setAction(MotionEvent.ACTION_BUTTON_PRESS);
            pressEvent.setActionButton(BUTTON_PRIMARY);
            AutoclickController.super.onMotionEvent(downEvent, downEvent,
                    mEventPolicyFlags);
            downEvent.recycle();
@@ -1424,6 +1425,7 @@ public class AutoclickController extends BaseEventStreamTransformation {
                            /* edgeFlags= */ 0,
                            mLastMotionEvent.getSource(),
                            mLastMotionEvent.getFlags());
            releaseEvent.setActionButton(BUTTON_PRIMARY);
            MotionEvent upEvent = MotionEvent.obtain(releaseEvent);
            upEvent.setAction(MotionEvent.ACTION_UP);
            AutoclickController.super.onMotionEvent(releaseEvent, releaseEvent,