Change API for input method subtype's mode from resource id to String
Change-Id: Ibf053d1747337cce3829288c6a47782f4dee9522
diff --git a/src/com/android/settings/inputmethod/InputMethodAndSubtypeEnabler.java b/src/com/android/settings/inputmethod/InputMethodAndSubtypeEnabler.java
index f40b008..3659dbb 100644
--- a/src/com/android/settings/inputmethod/InputMethodAndSubtypeEnabler.java
+++ b/src/com/android/settings/inputmethod/InputMethodAndSubtypeEnabler.java
@@ -199,11 +199,8 @@
subtypeLabel = pm.getText(property.getPackageName(), nameResId,
property.getServiceInfo().applicationInfo);
} else {
- int modeResId = subtype.getModeResId();
+ String mode = subtype.getMode();
CharSequence language = subtype.getLocale();
- CharSequence mode = modeResId == 0 ? null
- : pm.getText(property.getPackageName(), modeResId,
- property.getServiceInfo().applicationInfo);
// TODO: Use more friendly Title and UI
subtypeLabel = (mode == null ? "" : mode) + ","
+ (language == null ? "" : language);