diff options
author | Winson <winsonc@google.com> | 2015-08-07 14:48:20 -0700 |
---|---|---|
committer | Winson <winsonc@google.com> | 2015-08-07 14:48:20 -0700 |
commit | 53f6b7b340534e043fc98dc6a49fd9839d01c12a (patch) | |
tree | e4b57c1e85e790c8a8a89deda3b24fa8e42a6bcf | |
parent | a7866cd9ff40c072279b3f37f67d3c8d6aecfb54 (diff) | |
download | Launcher2-53f6b7b340534e043fc98dc6a49fd9839d01c12a.tar.gz |
Fixing issue where app icons were not updating with the package.android-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r4android-6.0.0_r3android-6.0.0_r2android-6.0.0_r1marshmallow-releasemarshmallow-devmarshmallow-cts-release
- This was due to the fact that the cache keys are now CacheKeys instead
of ComponentNames, which we were still trying to remove. This is a
serious issue because it means no app can update their icon while Launcher2
is running.
Bug: 23030496
Change-Id: I4a59ffe32b8fb2de11a64c173284b4cbf7e35222
-rw-r--r-- | src/com/android/launcher2/AllAppsList.java | 6 | ||||
-rw-r--r-- | src/com/android/launcher2/IconCache.java | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/launcher2/AllAppsList.java b/src/com/android/launcher2/AllAppsList.java index 11c75598..0ffab391 100644 --- a/src/com/android/launcher2/AllAppsList.java +++ b/src/com/android/launcher2/AllAppsList.java @@ -130,7 +130,7 @@ class AllAppsList { && packageName.equals(component.getPackageName())) { if (!findActivity(matches, component, user)) { removed.add(applicationInfo); - mIconCache.remove(component); + mIconCache.remove(component, user); data.remove(i); } } @@ -149,7 +149,7 @@ class AllAppsList { add(new ApplicationInfo(info, user, mIconCache, null)); } else { - mIconCache.remove(applicationInfo.componentName); + mIconCache.remove(applicationInfo.componentName, user); mIconCache.getTitleAndIcon(applicationInfo, info, null); modified.add(applicationInfo); } @@ -162,7 +162,7 @@ class AllAppsList { if (user.equals(applicationInfo.user) && packageName.equals(component.getPackageName())) { removed.add(applicationInfo); - mIconCache.remove(component); + mIconCache.remove(component, user); data.remove(i); } } diff --git a/src/com/android/launcher2/IconCache.java b/src/com/android/launcher2/IconCache.java index 84fed5f3..2074610b 100644 --- a/src/com/android/launcher2/IconCache.java +++ b/src/com/android/launcher2/IconCache.java @@ -160,9 +160,9 @@ public class IconCache { /** * Remove any records for the supplied ComponentName. */ - public void remove(ComponentName componentName) { + public void remove(ComponentName componentName, UserHandle user) { synchronized (mCache) { - mCache.remove(componentName); + mCache.remove(new CacheKey(componentName, user)); } } |