Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0c87657 authored by satok's avatar satok
Browse files

Skip the exit animation when the IME is destroyed.

Bug: 4529563

Change-Id: I6fb2ea3601e1cc6fa8858d006819698dcabdd5ca
parent f4b783f8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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();
        }
    }