Merge "Skip the exit animation when the IME is destroyed."

This commit is contained in:
satok
2011-09-13 19:11:05 -07:00
committed by Android (Google) Code Review

View File

@@ -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();
}
}