summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-01-30 15:15:10 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-01-30 15:15:10 -0800
commit6c58d9e385dae56d68b62bc504af689f5af6b1c9 (patch)
tree1e6d1f5cba321e7f49fab36b287808dcdf959a95 /src/com/android/launcher2/Launcher.java
parent8679c4d8ff78a460d70dd99fea2304a673d4af26 (diff)
parent7a25a9e39a13df706daeb0a4a82273f3c5151997 (diff)
downloadandroid_packages_apps_Trebuchet-6c58d9e385dae56d68b62bc504af689f5af6b1c9.tar.gz
android_packages_apps_Trebuchet-6c58d9e385dae56d68b62bc504af689f5af6b1c9.tar.bz2
android_packages_apps_Trebuchet-6c58d9e385dae56d68b62bc504af689f5af6b1c9.zip
Merge "Calling removeItems() should mark the item's previous cell as unoccupied. (3405806)" into honeycomb
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 1733ddb2c..f3208d0b8 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -3333,8 +3333,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) {