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

Commit 7839eaa9 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Generating a long-press even only when it's expected" into ub-launcher3-rvc-dev

parents 3f948e3f 759f771a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -167,8 +167,8 @@ public class WorkspaceTouchListener extends GestureDetector.SimpleOnGestureListe

    @Override
    public void onLongPress(MotionEvent event) {
        TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Workspace.longPress");
        if (mLongPressState == STATE_REQUESTED) {
            TestLogging.recordEvent(TestProtocol.SEQUENCE_MAIN, "Workspace.longPress");
            if (canHandleLongPress()) {
                mLongPressState = STATE_PENDING_PARENT_INFORM;
                mWorkspace.getParent().requestDisallowInterceptTouchEvent(true);