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

Commit 5d54e72a authored by Tarandeep Singh's avatar Tarandeep Singh
Browse files

Cancel previous IME window animation when switched

When IME1 is switched to IME2, IME1 doesnt finish animation and gets
stuck in exit animation and is never removed from screen.
An easy fix is to cancel the animation on IME1 so it can be removed when
IME2 is appearing.
Fix: 139488201
Bug: 111084606
Test: manually verified by switching IME using dialog
      and adb shell set.

Change-Id: Id34c9b325ebb68d4c14c2a12279c5a8410a8db0f
parent 92d2dd36
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -106,6 +106,11 @@ class InsetsSourceProvider {
            @Nullable TriConsumer<DisplayFrames, WindowState, Rect> frameProvider) {
        if (mWin != null) {
            mWin.setInsetProvider(null);
            // The window may be animating such that we can hand out the leash to the control
            // target. Revoke the leash by cancelling the animation to correct the state.
            // TODO: Ideally, we should wait for the animation to finish so previous window can
            // animate-out as new one animates-in.
            mWin.cancelAnimation();
        }
        mWin = win;
        mFrameProvider = frameProvider;