Prevent animation update callbacks after it has finished
Remove the update listener once the animation has ended or has been canceled to prevent further updates from trying to animate a surface that has already been released. This scenario can happend when mergeAnimation() manually runs end() on animations that already finished but had not been removed yet. This may happen because the removal of the animation is posted from the shell anim thread to the shell main thread, so mergeAnimation() may win a race and schedule another end() before the first end() removes the animations. Bug: 252872225 Test: boot, no shell.anim crash Change-Id: I442f1152fba97c30ce425b08f1aa65bb94fb3bb4
Loading
Please register or sign in to comment