Block animation transfer after surface animation finishes.
When a surface animation finishes, SurfaceAnimator must reset its internal state and triggers callbacks.
A part of this post-animation process is executed immediately after animation finishes,but the others might be deferred.
When SurfaceAnimator is in this tentative state, we cannot transfer SurfaceAnimation anymore.
For example, we add AnimationAdapter to WindowManagerService#mAnimationTransferMap during the transfer process,
but the AnimationAdapter will never be removed from the map,
since the removal logic is triggered from an animation finish callback but the animation has already finished.
Test: go/wm-smoke
Test: SurfaceAnimatorTest
Bug: 214330806
Change-Id: I4e49c1742c0039e89f037fc98d8da3040b4ad67b
Signed-off-by: fukaipeng <fukaipeng@xiaomi.com>
Loading
Please register or sign in to comment