Merge "Cleanup deferred drag when closing deep shortcuts container." into ub-launcher3-calgary

This commit is contained in:
Tony Wickham
2016-07-28 00:29:45 +00:00
committed by Android (Google) Code Review
+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);
}