summaryrefslogtreecommitdiff
path: root/services/java/com/android/server/InputMethodManagerService.java
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 /services/java/com/android/server/InputMethodManagerService.java
parentd1a1c09cb06fef6ade48063fe1171ff25cd38050 (diff)
Add an api to get the display name for InputMethodSubtype
Bug: 4321667 Change-Id: I55aa844ff33dae0cf8ef00072e87727992eb77c1
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
-rw-r--r--services/java/com/android/server/InputMethodManagerService.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java
index c96273b2c629..f4308cdd4a45 100644
--- a/services/java/com/android/server/InputMethodManagerService.java
+++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -1885,8 +1885,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
int nameResId = subtype.getNameResId();
String mode = subtype.getMode();
if (nameResId != 0) {
- title = TextUtils.concat(pm.getText(imi.getPackageName(),
- nameResId, imi.getServiceInfo().applicationInfo),
+ title = TextUtils.concat(subtype.getDisplayName(context,
+ imi.getPackageName(), imi.getServiceInfo().applicationInfo),
(TextUtils.isEmpty(label) ? "" : " (" + label + ")"));
} else {
CharSequence language = subtype.getLocale();