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

Commit 5fd72d86 authored by Tony Wickham's avatar Tony Wickham Committed by Android (Google) Code Review
Browse files

Merge "Don't allow multiple shortcuts to be dragged simultaneously." into ub-launcher3-master

parents 44ac5765 c92fe893
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -427,8 +427,10 @@ public class DeepShortcutsContainer extends AbstractFloatingView
    public boolean onLongClick(View v) {
        // Return early if this is not initiated from a touch or not the correct view
        if (!v.isInTouchMode() || !(v.getParent() instanceof DeepShortcutView)) return false;
        // Return if global dragging is not enabled
        // Return early if global dragging is not enabled
        if (!mLauncher.isDraggingEnabled()) return false;
        // Return early if an item is already being dragged (e.g. when long-pressing two shortcuts)
        if (mLauncher.getDragController().isDragging()) return false;

        // Long clicked on a shortcut.
        mDeferContainerRemoval = true;