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,9 +308,10 @@ public class PipTransition extends PipTransitionController {
@Override @Override
public void end() { public void end() {
Animator animator = mPipAnimationController.getCurrentAnimator(); Animator animator = mPipAnimationController.getCurrentAnimator();
if (animator == null) return; if (animator != null && animator.isRunning()) {
animator.end(); animator.end();
} }
}
@Override @Override
public boolean handleRotateDisplay(int startRotation, int endRotation, public boolean handleRotateDisplay(int startRotation, int endRotation,