Do not change the leash after completion

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/hDfsnKtrY7i5vJ41crnLhf
Bug: 284738852
Test: manually, follow the reproduce step, see also video
Change-Id: Iad166c1fb7b5db8c6bcd3abf0f3a0189747037da
This commit is contained in:
Hongwei Wang
2023-06-06 12:00:37 -07:00
parent 48c5b1bfa7
commit 0bd7ca55ee

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