diff options
| -rw-r--r-- | core/java/android/view/inputmethod/InputMethodManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/view/inputmethod/InputMethodManager.java b/core/java/android/view/inputmethod/InputMethodManager.java index 8efb201d08d6..c0da8f27eeb5 100644 --- a/core/java/android/view/inputmethod/InputMethodManager.java +++ b/core/java/android/view/inputmethod/InputMethodManager.java @@ -1153,6 +1153,9 @@ public final class InputMethodManager { } final boolean startInput; synchronized (mH) { + if (reason == UnbindReason.DISCONNECT_IME) { + mImeDispatcher.clear(); + } if (getBindSequenceLocked() != sequence) { return; } |