Skip to content

Commit 38aac04

Browse files
committed
Do not show the label for auto subtypes
Change-Id: Ie62d0b83f2fcb2c93d3935bcaa5121d2adc56b7d
1 parent 08b997c commit 38aac04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

services/java/com/android/server/InputMethodManagerService.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,8 +2100,10 @@ public int compare(InputMethodInfo imi1, InputMethodInfo imi2) {
21002100
// We show all enabled IMEs and subtypes when an IME is shown.
21012101
if (enabledSubtypeSet.contains(subtypeHashCode)
21022102
&& ((mInputShown && !isScreenLocked) || !subtype.isAuxiliary())) {
2103-
final CharSequence subtypeLabel = subtype.getDisplayName(context,
2104-
imi.getPackageName(), imi.getServiceInfo().applicationInfo);
2103+
final CharSequence subtypeLabel =
2104+
subtype.overridesImplicitlyEnabledSubtype() ? null
2105+
: subtype.getDisplayName(context, imi.getPackageName(),
2106+
imi.getServiceInfo().applicationInfo);
21052107
imList.add(new ImeSubtypeListItem(imeLabel, subtypeLabel, imi, j));
21062108

21072109
// Removing this subtype from enabledSubtypeSet because we no longer

0 commit comments

Comments
 (0)