summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CustomizePagedView.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-02-01 17:53:59 -0800
committerMichael Jurka <mikejurka@google.com>2011-02-02 22:51:29 -0800
commit8245a8685fc9f4802c9fa29a989854b2522fc588 (patch)
treec5e66168f9a0c311a61505ff879eecbe73a8fcea /src/com/android/launcher2/CustomizePagedView.java
parent98ed6bbec7ea8776c2a0b76429e47c2c7fc523e5 (diff)
downloadandroid_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.gz
android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.tar.bz2
android_packages_apps_Trebuchet-8245a8685fc9f4802c9fa29a989854b2522fc588.zip
Adding hardware layers to All Apps
- splitting up the "holo" outlines and the icons into separate views - enabling hardware layers on each of the views
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/CustomizePagedView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java
index e934efa9c..d08bf5459 100644
--- a/src/com/android/launcher2/CustomizePagedView.java
+++ b/src/com/android/launcher2/CustomizePagedView.java
@@ -930,7 +930,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
final int endIndex = Math.min(startIndex + numCells, list.size());
final PagedViewCellLayout layout = (PagedViewCellLayout) getChildAt(page);
// TODO: we can optimize by just re-applying to existing views
- layout.removeAllViews();
+ layout.removeAllViewsOnPage();
for (int i = startIndex; i < endIndex; ++i) {
ResolveInfo info = list.get(i);
PendingAddItemInfo createItemInfo = new PendingAddItemInfo();
@@ -990,7 +990,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems
final int endIndex = Math.min(startIndex + numCells, mApps.size());
final PagedViewCellLayout layout = (PagedViewCellLayout) getChildAt(page);
// TODO: we can optimize by just re-applying to existing views
- layout.removeAllViews();
+ layout.removeAllViewsOnPage();
for (int i = startIndex; i < endIndex; ++i) {
final ApplicationInfo info = mApps.get(i);
PagedViewIcon icon = (PagedViewIcon) mInflater.inflate(