diff options
| author | satok <satok@google.com> | 2012-05-10 02:22:58 +0900 |
|---|---|---|
| committer | satok <satok@google.com> | 2012-05-10 02:57:11 +0900 |
| commit | e0a99414bd3737ad976bf4a040c184bebd8e2e3d (patch) | |
| tree | 6152c9426ec7bf8e64b56ef3048c85314da298e9 /services/java/com/android/server/InputMethodManagerService.java | |
| parent | 2f913d951c481edccbefa4d321a76f28740b48d7 (diff) | |
Fix the issue that the insets linger after closing the voice input
Bug: 6456954
Change-Id: Idf7700271cf882dfbf35c9d16f0f173a791221bc
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
| -rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index 47b8352801a1..a49ccf7109a9 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -1142,6 +1142,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub 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) { } |
