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

Commit ca83021e authored by satok's avatar satok
Browse files

Save input method subtype even if the current IME is not running.

Bug: 3325103
Change-Id: I6dfd19a0d494526cdb4cfb4230a5376ce94ca94a
parent 96100195
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -427,6 +427,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                            // Uh oh, current input method is no longer around!
                            // Pick another one...
                            Slog.i(TAG, "Current input method removed: " + curInputMethodId);
                            mStatusBar.setIMEButtonVisible(mCurToken, false);
                            if (!chooseNewDefaultIMELocked()) {
                                changed = true;
                                curIm = null;
@@ -1020,9 +1021,11 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            }
            if (subtype != mCurrentSubtype) {
                synchronized (mMethodMap) {
                    if (subtype != null) {
                        setSelectedInputMethodAndSubtypeLocked(info, subtypeId, true);
                    }
                    if (mCurMethod != null) {
                        try {
                            setSelectedInputMethodAndSubtypeLocked(info, subtypeId, true);
                            if (mInputShown) {
                                // If mInputShown is false, there is no IME button on the
                                // system bar.