commit | e0a99414bd3737ad976bf4a040c184bebd8e2e3d | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Thu May 10 02:22:58 2012 +0900 |
committer | satok <satok@google.com> | Thu May 10 02:57:11 2012 +0900 |
tree | 6152c9426ec7bf8e64b56ef3048c85314da298e9 | |
parent | 2f913d951c481edccbefa4d321a76f28740b48d7 [diff] [blame] |
Fix the issue that the insets linger after closing the voice input Bug: 6456954 Change-Id: Idf7700271cf882dfbf35c9d16f0f173a791221bc
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 47b8352..a49ccf7 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java
@@ -1142,6 +1142,10 @@ if (mCurToken != null) { try { if (DEBUG) Slog.v(TAG, "Removing window token: " + mCurToken); + if ((mImeWindowVis & InputMethodService.IME_ACTIVE) != 0) { + // The current IME is shown. Hence an IME switch (transition) is happening. + mWindowManagerService.saveLastInputMethodWindowForTransition(); + } mIWindowManager.removeWindowToken(mCurToken); } catch (RemoteException e) { }