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

Commit 5327322a authored by Satoshi Kataoka's avatar Satoshi Kataoka Committed by Android (Google) Code Review
Browse files

Merge "Revert "Fix a bug where disabled auxilialy IME is unexpectedly...

Merge "Revert "Fix a bug where disabled auxilialy IME is unexpectedly re-enabled"" into jb-mr1.1-dev
parents b5e4835e 9d08143f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -782,9 +782,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        if (!isSystemIme(imi)) {
            return false;
        }
        if (imi.isAuxiliaryIme()) {
            return false;
        }
        if (imi.getIsDefaultResourceId() != 0) {
            try {
                Resources res = context.createPackageContext(
@@ -808,9 +805,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        if (!isSystemIme(imi)) {
            return false;
        }
        if (imi.isAuxiliaryIme()) {
            return false;
        }
        return containsSubtypeOf(imi, ENGLISH_LOCALE.getLanguage());
    }

@@ -2862,9 +2856,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
        List<Pair<String, ArrayList<String>>> enabledInputMethodsList = mSettings
                .getEnabledInputMethodsAndSubtypeListLocked();

        if (DEBUG) {
            Slog.d(TAG, (enabled ? "Enable " : "Disable ") + id);
        }
        if (enabled) {
            for (Pair<String, ArrayList<String>> pair: enabledInputMethodsList) {
                if (pair.first.equals(id)) {