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

Commit b9da4627 authored by Tony Wickham's avatar Tony Wickham
Browse files

Cleanup deferred drag when closing deep shortcuts container.

This fixes those states where a drag view dangles on the screen
forever until launcher restarts. For instance, long press
Settings and press home before letting go.

Bug: 30291280

Change-Id: Ib8c403a02a17f35ba170c21f78f41bdc3b48d096
parent 8fcdee05
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3132,6 +3132,7 @@ public class Launcher extends Activity
    public void closeShortcutsContainer() {
        DeepShortcutsContainer deepShortcutsContainer = getOpenShortcutsContainer();
        if (deepShortcutsContainer != null) {
            deepShortcutsContainer.cleanupDeferredDrag(true);
            mDragController.removeDragListener(deepShortcutsContainer);
            mDragLayer.removeView(deepShortcutsContainer);
        }