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

Commit 6866d691 authored by satok's avatar satok Committed by Android (Google) Code Review
Browse files

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

Merge "Fix the bug that IME switch button is shown when there are two IME is installed but only one IME is enabled."
parents 478fed84 07e7279c
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);