commit | 1d5856c28a4f0e95fbd48c49e48a6dfaa60f9d67 | [log] [tgz] |
---|---|---|
author | Riddle Hsu <riddlehsu@google.com> | Tue Mar 26 22:56:53 2019 +0800 |
committer | Riddle Hsu <riddlehsu@google.com> | Fri Mar 29 21:12:31 2019 +0800 |
tree | 708470e51c0e89fba65817e571db218fc4d52df7 | |
parent | aecff3d7c4cb910e6ab95849d2d5def121b0469f [diff] |
Ensure the deferred callback does not finish next animation This fixes the timing that another animation is starting and the previous deferred onFinished callback is invoked after that. It will cause the next animation to use the released leash and then crashes in onAnimationStart or onAnimationUpdate. Bug: 124303221 Test: atest SurfaceAnimatorTest#testDeferFinishDoNotFinishNextAnimation Change-Id: Ia04b8433ed6f9a9d88295b4986a5063c2271ca80