summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-09-13 19:11:05 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-13 19:11:05 -0700
commit41ccb08f5af7ff28568b5eb09b1319fb6d8edcfb (patch)
tree84422b573c36065ef22994b22c8f3b8108be259f
parentcb18db8e7e43c4aa15aeb82dbab41ee3ee95f0b4 (diff)
parentc0c8765719f5c8d0192aa266c27166bdd8c09a33 (diff)
downloadframeworks_base-41ccb08f5af7ff28568b5eb09b1319fb6d8edcfb.zip
frameworks_base-41ccb08f5af7ff28568b5eb09b1319fb6d8edcfb.tar.gz
frameworks_base-41ccb08f5af7ff28568b5eb09b1319fb6d8edcfb.tar.bz2
Merge "Skip the exit animation when the IME is destroyed."
-rw-r--r--core/java/android/inputmethodservice/InputMethodService.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java
index 440d649..d2effff 100644
--- a/core/java/android/inputmethodservice/InputMethodService.java
+++ b/core/java/android/inputmethodservice/InputMethodService.java
@@ -688,6 +688,10 @@ public class InputMethodService extends AbstractInputMethodService {
mRootView.getViewTreeObserver().removeOnComputeInternalInsetsListener(
mInsetsComputer);
if (mWindowAdded) {
+ // Disable exit animation for the current IME window
+ // to avoid the race condition between the exit and enter animations
+ // when the current IME is being switched to another one.
+ mWindow.getWindow().setWindowAnimations(0);
mWindow.dismiss();
}
}