From e0a99414bd3737ad976bf4a040c184bebd8e2e3d Mon Sep 17 00:00:00 2001 From: satok Date: Thu, 10 May 2012 02:22:58 +0900 Subject: Fix the issue that the insets linger after closing the voice input Bug: 6456954 Change-Id: Idf7700271cf882dfbf35c9d16f0f173a791221bc --- services/java/com/android/server/InputMethodManagerService.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/java/com/android/server/InputMethodManagerService.java') 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 @@ 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) { } -- cgit v1.1