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:
Tony Wickham committed 2016-07-27 23:44:53 +00:00
1 parent 8fcdee05bb
commit b9da46275b
1 file changed
+1
+1
View File
@@ -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);
}