summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/IconCache.java
diff options
context:
space:
mode:
authorRicardo Cerqueira <ricardo@cyngn.com>2015-08-31 16:02:12 +0100
committerRicardo Cerqueira <ricardo@cyngn.com>2015-09-02 12:01:24 +0100
commit547e58943c941931561f44b9c2627fa13906e15d (patch)
treedba9d65e8fea4c5b7d176e32ecc58c7df2d16c25 /src/com/android/launcher3/IconCache.java
parentc1f4123488dceae1daa725d48875588848e86b0e (diff)
downloadandroid_packages_apps_Trebuchet-547e58943c941931561f44b9c2627fa13906e15d.tar.gz
android_packages_apps_Trebuchet-547e58943c941931561f44b9c2627fa13906e15d.tar.bz2
android_packages_apps_Trebuchet-547e58943c941931561f44b9c2627fa13906e15d.zip
Support STK app rename on MSIM
Companion change to If64b278360a0b8433e23e6678f04cdf30fe2cef1 Change-Id: I36c74301c7813e6c118faed9fa5b31a36233db1e
Diffstat (limited to 'src/com/android/launcher3/IconCache.java')
-rw-r--r--src/com/android/launcher3/IconCache.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/launcher3/IconCache.java b/src/com/android/launcher3/IconCache.java
index 417314e78..de53b9718 100644
--- a/src/com/android/launcher3/IconCache.java
+++ b/src/com/android/launcher3/IconCache.java
@@ -336,10 +336,12 @@ public class IconCache {
getBoolean(R.bool.config_launcher_stkAppRename))
&& info.getComponentName().getPackageName().toString()
.equalsIgnoreCase(STK_PACKAGE_NAME);
+ String activity = info.getComponentName().getClassName().toString();
+
boolean isCustomTitle = false;
if (condition
&& !TextUtils.isEmpty(((LauncherApplication) mContext)
- .getStkAppName())) {
+ .getStkAppName(activity))) {
isCustomTitle = true;
}
if (entry == null || unreadNum >= 0) {
@@ -352,14 +354,14 @@ public class IconCache {
if (labelCache != null && labelCache.containsKey(labelKey)) {
if (isCustomTitle) {
entry.title = ((LauncherApplication) mContext)
- .getStkAppName();
+ .getStkAppName(activity);
} else {
entry.title = labelCache.get(labelKey).toString();
}
} else {
if (isCustomTitle) {
entry.title = ((LauncherApplication) mContext)
- .getStkAppName();
+ .getStkAppName(activity);
} else {
entry.title = info.getLabel().toString();
}