summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-06-01 16:13:45 +0900
committersatok <satok@google.com>2011-06-02 18:26:36 +0900
commit4f31353cb3b00c77c9420ef27ec949fd570ede3b (patch)
treef8b82e376f7eaf019afb44d7adb4af31a64406f6 /packages
parentd1a1c09cb06fef6ade48063fe1171ff25cd38050 (diff)
downloadframeworks_base-4f31353cb3b00c77c9420ef27ec949fd570ede3b.zip
frameworks_base-4f31353cb3b00c77c9420ef27ec949fd570ede3b.tar.gz
frameworks_base-4f31353cb3b00c77c9420ef27ec949fd570ede3b.tar.bz2
Add an api to get the display name for InputMethodSubtype
Bug: 4321667 Change-Id: I55aa844ff33dae0cf8ef00072e87727992eb77c1
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java
index e9db998..339e3f3 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/tablet/InputMethodsPanel.java
@@ -422,9 +422,8 @@ public class InputMethodsPanel extends LinearLayout implements StatusBarPanel,
Log.d(TAG, "Get text from: " + imi.getPackageName() + subtype.getNameResId()
+ imi.getServiceInfo().applicationInfo);
}
- // TODO: Change the language of subtype name according to subtype's locale.
- return mPackageManager.getText(
- imi.getPackageName(), subtype.getNameResId(), imi.getServiceInfo().applicationInfo);
+ return subtype.getDisplayName(
+ mContext, imi.getPackageName(), imi.getServiceInfo().applicationInfo);
}
private Drawable getSubtypeIcon(InputMethodInfo imi, InputMethodSubtype subtype) {