From 7cef289a32f8da507a26d46132eb8d875bee1c24 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 7 Jan 2011 10:08:48 -0800 Subject: [PATCH] Call through to super.removeallViews*(). Fixes the duplicate view bug by actually removing the views. Bug: 3165740 Change-Id: I18f26e4cf498e6d53825959a61d585fac2c89faa --- src/com/android/launcher2/CellLayout.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index 4e618aff1d..121aa226d7 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -646,11 +646,13 @@ public class CellLayout extends ViewGroup implements Dimmable { @Override public void removeAllViews() { + super.removeAllViews(); clearOccupiedCells(); } @Override public void removeAllViewsInLayout() { + super.removeAllViewsInLayout(); clearOccupiedCells(); }