Loading packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java +10 −1 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ public class ApplicationsState { @VisibleForTesting static ApplicationsState sInstance; // Whether the app icon cache mechanism is enabled or not. private static boolean sAppIconCacheEnabled = false; public static ApplicationsState getInstance(Application app) { return getInstance(app, AppGlobals.getPackageManager()); } Loading @@ -115,6 +118,11 @@ public class ApplicationsState { } } /** Set whether the app icon cache mechanism is enabled or not. */ public static void setAppIconCacheEnabled(boolean enabled) { sAppIconCacheEnabled = enabled; } final Context mContext; final PackageManager mPm; final IPackageManager mIpm; Loading Loading @@ -776,7 +784,8 @@ public class ApplicationsState { } private static boolean isAppIconCacheEnabled(Context context) { return SETTING_PKG.equals(context.getPackageName()); return SETTING_PKG.equals(context.getPackageName()) || sAppIconCacheEnabled; } void rebuildActiveSessions() { Loading Loading
packages/SettingsLib/src/com/android/settingslib/applications/ApplicationsState.java +10 −1 Original line number Diff line number Diff line Loading @@ -101,6 +101,9 @@ public class ApplicationsState { @VisibleForTesting static ApplicationsState sInstance; // Whether the app icon cache mechanism is enabled or not. private static boolean sAppIconCacheEnabled = false; public static ApplicationsState getInstance(Application app) { return getInstance(app, AppGlobals.getPackageManager()); } Loading @@ -115,6 +118,11 @@ public class ApplicationsState { } } /** Set whether the app icon cache mechanism is enabled or not. */ public static void setAppIconCacheEnabled(boolean enabled) { sAppIconCacheEnabled = enabled; } final Context mContext; final PackageManager mPm; final IPackageManager mIpm; Loading Loading @@ -776,7 +784,8 @@ public class ApplicationsState { } private static boolean isAppIconCacheEnabled(Context context) { return SETTING_PKG.equals(context.getPackageName()); return SETTING_PKG.equals(context.getPackageName()) || sAppIconCacheEnabled; } void rebuildActiveSessions() { Loading