summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/Launcher.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-01-27 16:46:51 -0800
committerWinson Chung <winsonc@google.com>2011-01-27 17:35:43 -0800
commit6e3140865d3f0def2e55934d8b0b2c1503386e54 (patch)
tree8d24c9e1c76bd5cbd39fb7b394e94a655f583826 /src/com/android/launcher2/Launcher.java
parent65af56cf9d8d63e10cf961e1468a5e86d4081405 (diff)
downloadandroid_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.tar.gz
android_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.tar.bz2
android_packages_apps_Trebuchet-6e3140865d3f0def2e55934d8b0b2c1503386e54.zip
Fixes for other places where we expect CellLayoutChildren instead of CellLayout. (3392097)
Change-Id: I9df13c413ce62a2760ce6a8ebafed1e948088de2
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r--src/com/android/launcher2/Launcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 861486595..a5799ae65 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -3331,7 +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().
- ((ViewGroup) workspace.getChildAt(i)).removeAllViewsInLayout();
+ final ViewGroup layout = ((CellLayout) workspace.getChildAt(i)).getChildrenLayout();
+ layout.removeAllViewsInLayout();
}
if (DEBUG_USER_INTERFACE) {