summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/InputMethodManagerService.java
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-09 11:04:51 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-09 11:04:51 -0700
commit14124c696d82e68f93baed905ca01fc498ae1fc6 (patch)
tree9d2e2893b592bbdd30f1456da6d6461817e61921 /services/java/com/android/server/InputMethodManagerService.java
parent956f9bd0049b86b45868dfbd9b539d3ac35cdec2 (diff)
parente0a99414bd3737ad976bf4a040c184bebd8e2e3d (diff)
downloadframeworks_base-14124c696d82e68f93baed905ca01fc498ae1fc6.zip
frameworks_base-14124c696d82e68f93baed905ca01fc498ae1fc6.tar.gz
frameworks_base-14124c696d82e68f93baed905ca01fc498ae1fc6.tar.bz2
Merge "Fix the issue that the insets linger after closing the voice input" into jb-dev
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
-rw-r--r--services/java/com/android/server/InputMethodManagerService.java4
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 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) {
}