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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user