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

Commit c794661b authored by Jorge Gil's avatar Jorge Gil Committed by Android (Google) Code Review
Browse files

Merge "Cancel ongoing PIP animations in onTaskVanished" into sc-dev

parents b0ef72e5 129493d4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -722,6 +722,14 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
        if (info.displayId != Display.DEFAULT_DISPLAY && mOnDisplayIdChangeCallback != null) {
            mOnDisplayIdChangeCallback.accept(Display.DEFAULT_DISPLAY);
        }

        final PipAnimationController.PipTransitionAnimator animator =
                mPipAnimationController.getCurrentAnimator();
        if (animator != null) {
            animator.removeAllUpdateListeners();
            animator.removeAllListeners();
            animator.cancel();
        }
    }

    @Override