summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/PagedViewCellLayoutChildren.java
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-05-17 16:24:49 -0700
committerWinson Chung <winsonc@google.com>2011-05-17 17:06:59 -0700
commit6a70e9fc3c62cc83d6abe59323d622dc6cd224a7 (patch)
tree1844176feea41b6180d2bf4858a31f2aef47f41b /src/com/android/launcher2/PagedViewCellLayoutChildren.java
parent2801cafe62653131fdc9da402e5c44e5ffd0bf47 (diff)
downloadandroid_packages_apps_Trebuchet-6a70e9fc3c62cc83d6abe59323d622dc6cd224a7.tar.gz
android_packages_apps_Trebuchet-6a70e9fc3c62cc83d6abe59323d622dc6cd224a7.tar.bz2
android_packages_apps_Trebuchet-6a70e9fc3c62cc83d6abe59323d622dc6cd224a7.zip
Fixing issue where holographic icons could get out of sync in AllApps (when number of pages changes).
Change-Id: I1a63d4837c5b726a90229430f5fc698aa1db5550
Diffstat (limited to 'src/com/android/launcher2/PagedViewCellLayoutChildren.java')
-rw-r--r--src/com/android/launcher2/PagedViewCellLayoutChildren.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/com/android/launcher2/PagedViewCellLayoutChildren.java b/src/com/android/launcher2/PagedViewCellLayoutChildren.java
index 92ff46184..6333f7f2e 100644
--- a/src/com/android/launcher2/PagedViewCellLayoutChildren.java
+++ b/src/com/android/launcher2/PagedViewCellLayoutChildren.java
@@ -165,4 +165,26 @@ public class PagedViewCellLayoutChildren extends ViewGroup {
}
}
}
+
+ public void loadHolographicOutlines() {
+ int count = getChildCount();
+ for (int i = 0; i < count; i++) {
+ View view = getChildAt(i);
+ if (view instanceof PagedViewIcon) {
+ PagedViewIcon icon = (PagedViewIcon) view;
+ icon.loadHolographicIcon();
+ }
+ }
+ }
+
+ public void clearHolographicOutlines() {
+ int count = getChildCount();
+ for (int i = 0; i < count; i++) {
+ View view = getChildAt(i);
+ if (view instanceof PagedViewIcon) {
+ PagedViewIcon icon = (PagedViewIcon) view;
+ icon.clearHolographicIcon();
+ }
+ }
+ }
}