Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 38aac047 authored by satok's avatar satok
Browse files

Do not show the label for auto subtypes

Change-Id: Ie62d0b83f2fcb2c93d3935bcaa5121d2adc56b7d
parent 08b997c7
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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