Making LauncherIcons thread safe

Creating a pool of LauncherIcons so that they can be used from multiple threads

Change-Id: Idc7b5ddb47b6e338a5389f3c4faa6f63de108c72
This commit is contained in:
Sunny Goyal committed 2018-01-09 17:30:52 -08:00
1 parent 383b7fa02a
commit 18a4e5aefb
21 files changed
+276 -391

No files matched your search

+1 -1
View File
@@ -110,7 +110,7 @@ public class AppInfo extends ItemInfoWithIcon {
info.runtimeStatusFlags |= (appInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 0
? FLAG_SYSTEM_NO : FLAG_SYSTEM_YES;
if (FeatureFlags.LEGACY_ICON_TREATMENT && Utilities.ATLEAST_OREO
if (Utilities.ATLEAST_OREO
&& appInfo.targetSdkVersion >= Build.VERSION_CODES.O
&& Process.myUserHandle().equals(lai.getUser())) {
// The icon for a non-primary user is badged, hence it's not exactly an adaptive icon.