Calling removeItems() should mark the item's previous cell as unoccupied. (3405806)
Change-Id: I99de0149dea5b487ed75e2469478e2346cd5b5df
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index a592f20..8e73f58 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -3331,8 +3331,8 @@
int count = workspace.getChildCount();
for (int i = 0; i < count; i++) {
// Use removeAllViewsInLayout() to avoid an extra requestLayout() and invalidate().
- final ViewGroup layout = ((CellLayout) workspace.getChildAt(i)).getChildrenLayout();
- layout.removeAllViewsInLayout();
+ final CellLayout layoutParent = (CellLayout) workspace.getChildAt(i);
+ layoutParent.removeAllViewsInLayout();
}
if (DEBUG_USER_INTERFACE) {