summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-01-30 13:33:56 -0800
committerWinson Chung <winsonc@google.com>2011-01-30 13:34:42 -0800
commit7a25a9e39a13df706daeb0a4a82273f3c5151997 (patch)
tree7ff2c5bd430db2c94b33db7955599bd563277004 /src/com/android/launcher2/Launcher.java
parente1dc51bce0764ba5a567145b0f4c78aa5b24fe67 (diff)
downloadandroid_packages_apps_Trebuchet-7a25a9e39a13df706daeb0a4a82273f3c5151997.tar.gz
android_packages_apps_Trebuchet-7a25a9e39a13df706daeb0a4a82273f3c5151997.tar.bz2
android_packages_apps_Trebuchet-7a25a9e39a13df706daeb0a4a82273f3c5151997.zip
Calling removeItems() should mark the item's previous cell as unoccupied. (3405806)
Change-Id: I99de0149dea5b487ed75e2469478e2346cd5b5df
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r--src/com/android/launcher2/Launcher.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index a592f208e..8e73f589c 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -3331,8 +3331,8 @@ public final class Launcher extends Activity
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) {