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

Commit 274323ce authored by Craig Mautner's avatar Craig Mautner
Browse files

Remove old show/hide messages on new ime (DO NOT MERGE)

The previous show/hide messages in the queue were still trying
to be honored even after a new ime was attached.

Fixes bug 8263462.

Change-Id: Iee60dbd1d58542f73aedeac5ccb54cddeb5d5dfe
parent 93f99846
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1243,6 +1243,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                    unbindCurrentMethodLocked(false, false);
                    return;
                }
                // Remove commands relating to the previous service. Otherwise WindowManagerService
                // will reject the command because the token attached to these messages is invalid.
                mCaller.removeMessages(MSG_SHOW_SOFT_INPUT);
                mCaller.removeMessages(MSG_HIDE_SOFT_INPUT);
                if (DEBUG) Slog.v(TAG, "Initiating attach with token: " + mCurToken);
                executeOrSendMessage(mCurMethod, mCaller.obtainMessageOO(
                        MSG_ATTACH_TOKEN, mCurMethod, mCurToken));