mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 16:26:47 +00:00
Fixing issue where the holographic icons sometimes don't update (ie. after uninstalling an app).
Change-Id: I593d557e3f019a1a68e47ac6310c6cc476c0e37e
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user