Skip to content

Commit 41ccb08

Browse files
satok16Android (Google) Code Review
authored andcommitted
Merge "Skip the exit animation when the IME is destroyed."
2 parents cb18db8 + c0c8765 commit 41ccb08

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/java/android/inputmethodservice/InputMethodService.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,10 @@ void initViews() {
688688
mRootView.getViewTreeObserver().removeOnComputeInternalInsetsListener(
689689
mInsetsComputer);
690690
if (mWindowAdded) {
691+
// Disable exit animation for the current IME window
692+
// to avoid the race condition between the exit and enter animations
693+
// when the current IME is being switched to another one.
694+
mWindow.getWindow().setWindowAnimations(0);
691695
mWindow.dismiss();
692696
}
693697
}

0 commit comments

Comments
 (0)