diff options
| author | satok <satok@google.com> | 2011-09-12 12:08:05 +0900 |
|---|---|---|
| committer | satok <satok@google.com> | 2011-09-12 19:17:43 +0900 |
| commit | c0c8765719f5c8d0192aa266c27166bdd8c09a33 (patch) | |
| tree | 93cdc4a09016c038d511d73e9db55acb2226b6b3 /core/java/android/inputmethodservice/InputMethodService.java | |
| parent | f4b783f8a7f7ba56a879b0fce075257659e9f909 (diff) | |
Skip the exit animation when the IME is destroyed.
Bug: 4529563
Change-Id: I6fb2ea3601e1cc6fa8858d006819698dcabdd5ca
Diffstat (limited to 'core/java/android/inputmethodservice/InputMethodService.java')
| -rw-r--r-- | core/java/android/inputmethodservice/InputMethodService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/inputmethodservice/InputMethodService.java b/core/java/android/inputmethodservice/InputMethodService.java index 7d3cd9249aa4..af591d31ab64 100644 --- a/core/java/android/inputmethodservice/InputMethodService.java +++ b/core/java/android/inputmethodservice/InputMethodService.java @@ -687,6 +687,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(); } } |
