Do not show the label for auto subtypes

Change-Id: Ie62d0b83f2fcb2c93d3935bcaa5121d2adc56b7d
This commit is contained in:
satok
2011-09-06 14:41:33 +09:00
parent 08b997c742
commit 38aac04743

View File

@@ -2100,8 +2100,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
// We show all enabled IMEs and subtypes when an IME is shown.
if (enabledSubtypeSet.contains(subtypeHashCode)
&& ((mInputShown && !isScreenLocked) || !subtype.isAuxiliary())) {
final CharSequence subtypeLabel = subtype.getDisplayName(context,
imi.getPackageName(), imi.getServiceInfo().applicationInfo);
final CharSequence subtypeLabel =
subtype.overridesImplicitlyEnabledSubtype() ? null
: subtype.getDisplayName(context, imi.getPackageName(),
imi.getServiceInfo().applicationInfo);
imList.add(new ImeSubtypeListItem(imeLabel, subtypeLabel, imi, j));
// Removing this subtype from enabledSubtypeSet because we no longer