summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-03-01 13:37:11 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-01 13:37:11 -0800
commitfecd3b8e36dc0b785271b7a501ed174247c412a4 (patch)
treeb4b8d7b9c71b4e2ca97174f5bd93b198a5633060 /src/com/android
parent1a16489badd44caf06e757c31c71c2aff1e355fd (diff)
parent823c969f528c7c2c654e7010e9b939f4c2bbdf87 (diff)
downloadandroid_packages_apps_Trebuchet-fecd3b8e36dc0b785271b7a501ed174247c412a4.tar.gz
android_packages_apps_Trebuchet-fecd3b8e36dc0b785271b7a501ed174247c412a4.tar.bz2
android_packages_apps_Trebuchet-fecd3b8e36dc0b785271b7a501ed174247c412a4.zip
Merge "Fixing issue where the holographic icons sometimes don't update (ie. after uninstalling an app)."
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/launcher2/PagedViewIcon.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/com/android/launcher2/PagedViewIcon.java b/src/com/android/launcher2/PagedViewIcon.java
index 9c5d1267c..bde65593a 100644
--- a/src/com/android/launcher2/PagedViewIcon.java
+++ b/src/com/android/launcher2/PagedViewIcon.java
@@ -141,13 +141,15 @@ public class PagedViewIcon extends CachedTextView implements Checkable {
return mHolographicOutline;
}
- private void queueHolographicOutlineCreation() {
+ private boolean queueHolographicOutlineCreation() {
// Generate the outline in the background
if (mHolographicOutline == null) {
Message m = sWorker.obtainMessage(MESSAGE_CREATE_HOLOGRAPHIC_OUTLINE);
m.obj = this;
sWorker.sendMessage(m);
+ return true;
}
+ return false;
}
public void applyFromApplicationInfo(ApplicationInfo info, PagedViewIconCache cache,
@@ -161,7 +163,9 @@ public class PagedViewIcon extends CachedTextView implements Checkable {
mIconCache = cache;
mIconCacheKey = new PagedViewIconCache.Key(info);
mHolographicOutline = mIconCache.getOutline(mIconCacheKey);
- queueHolographicOutlineCreation();
+ if (!queueHolographicOutlineCreation()) {
+ getHolographicOutlineView().invalidate();
+ }
}
}
@@ -177,7 +181,9 @@ public class PagedViewIcon extends CachedTextView implements Checkable {
mIconCache = cache;
mIconCacheKey = new PagedViewIconCache.Key(info);
mHolographicOutline = mIconCache.getOutline(mIconCacheKey);
- queueHolographicOutlineCreation();
+ if (!queueHolographicOutlineCreation()) {
+ getHolographicOutlineView().invalidate();
+ }
}
}