summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher3/IconCache.java19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java
index cecfb6d..59239be 100644
--- a/src/com/android/launcher3/IconCache.java
+++ b/src/com/android/launcher3/IconCache.java
@@ -568,15 +568,18 @@ public class IconCache {
UserHandleCompat user, boolean usePackageIcon, boolean useLowResIcon) {
ComponentKey cacheKey = new ComponentKey(componentName, user);
CacheEntry entry = mCache.get(cacheKey);
- boolean condition = (mContext.getResources().
- getBoolean(R.bool.config_launcher_stkAppRename))
- && info.getComponentName().getPackageName().toString()
- .equalsIgnoreCase(STK_PACKAGE_NAME);
+
boolean isCustomTitle = false;
- if (condition
- && !TextUtils.isEmpty(((LauncherApplication) mContext)
- .getStkAppName())) {
- isCustomTitle = true;
+ if (info != null) {
+ boolean condition = (mContext.getResources().
+ getBoolean(R.bool.config_launcher_stkAppRename))
+ && info.getComponentName().getPackageName().toString()
+ .equalsIgnoreCase(STK_PACKAGE_NAME);
+ if (condition
+ && !TextUtils.isEmpty(((LauncherApplication) mContext)
+ .getStkAppName())) {
+ isCustomTitle = true;
+ }
}
if (entry == null || (entry.isLowResIcon && !useLowResIcon)) {
entry = new CacheEntry();