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

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

Merge "Disabling updating All Apps during a long-press recognition" into ub-launcher3-qt-dev

parents 9aaa9267 24d31d4b
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -604,4 +604,18 @@ public class AllAppsContainerView extends SpringRelativeLayout implements DragSo

        return super.performAccessibilityAction(action, arguments);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        switch (ev.getActionMasked()) {
            case MotionEvent.ACTION_DOWN:
                mAllAppsStore.setDeferUpdates(true);
                break;
            case MotionEvent.ACTION_UP:
            case MotionEvent.ACTION_CANCEL:
                mAllAppsStore.setDeferUpdates(false);
                break;
        }
        return super.dispatchTouchEvent(ev);
    }
}