Merge "Do not change the leash after completion" into udc-dev

This commit is contained in:
Hongwei Wang
2023-06-06 21:35:21 +00:00
committed by Android (Google) Code Review

View File

@@ -308,8 +308,9 @@ public class PipTransition extends PipTransitionController {
@Override
public void end() {
Animator animator = mPipAnimationController.getCurrentAnimator();
if (animator == null) return;
animator.end();
if (animator != null && animator.isRunning()) {
animator.end();
}
}
@Override