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

Commit 9747f897 authored by satok's avatar satok
Browse files

Fix the visiblity of the ime switcher icon.

Bug: 5288866
Change-Id: I99b4aee36c337b2fab1116e9245ddecd826c840c
parent f4b783f8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -102,7 +102,9 @@ public class InputMethodButton extends ImageView {
            return true;
        } else if (nonAuxCount == 1 && auxCount == 1) {
            if (nonAuxSubtype != null && auxSubtype != null
                    && nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
                    && (nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
                            || auxSubtype.overridesImplicitlyEnabledSubtype()
                            || nonAuxSubtype.overridesImplicitlyEnabledSubtype())
                    && nonAuxSubtype.containsExtraValueKey(TAG_TRY_SUPPRESSING_IME_SWITCHER)) {
                return false;
            }
+3 −1
Original line number Diff line number Diff line
@@ -1115,7 +1115,9 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                return true;
            } else if (nonAuxCount == 1 && auxCount == 1) {
                if (nonAuxSubtype != null && auxSubtype != null
                        && nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
                        && (nonAuxSubtype.getLocale().equals(auxSubtype.getLocale())
                                || auxSubtype.overridesImplicitlyEnabledSubtype()
                                || nonAuxSubtype.overridesImplicitlyEnabledSubtype())
                        && nonAuxSubtype.containsExtraValueKey(TAG_TRY_SUPPRESSING_IME_SWITCHER)) {
                    return false;
                }