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

Commit 07e7279c authored by satok's avatar satok
Browse files

Fix the bug that IME switch button is shown when there are two IME is...

Fix the bug that IME switch button is shown when there are two IME is installed but only one IME is enabled.

Bug: 3286682
Change-Id: I6a9c6972c136ca8df85ab2b305d08120c09a4543
parent 6cb3b52d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ public class InputMethodButton extends ImageView {
    // * There are no explicitly enabled (by the user) subtypes of the IME, or the IME doesn't have
    // its subtypes at all
    private boolean needsToShowIMEButton() {
        List<InputMethodInfo> imis = mImm.getInputMethodList();
        List<InputMethodInfo> imis = mImm.getEnabledInputMethodList();
        final int size = imis.size();
        return size > 1
                || (size == 1 && mImm.getEnabledInputMethodSubtypeList(imis.get(0)).size() > 1);