OSDN Git Service

animateNoDamage failed to remove from current frame list
authorYe Ouyang <a5111c@motorola.com>
Tue, 4 Aug 2015 15:40:57 +0000 (10:40 -0500)
committerYe Ouyang <a5111c@motorola.com>
Tue, 4 Aug 2015 15:42:32 +0000 (10:42 -0500)
commit68eb3b22b06477e5a229714f802cbc48e8486937
treee2be9cbaad092d6f66542c60f504150ff0858cf8
parent608ad1409dc3cd86a66208ddaa31e3a4c54adfac
animateNoDamage failed to remove from current frame list

runRemainingAnimations is used to animate the available animation handle
which were not yet run, it actually animate those animation handle and
removes from the list by notifyAnimationsRan(). In case if these animation
handles are not removed, it leads to the Fatal Assert of runRemainingAnimations.

Some usecases causes the addition of animation handle when there is
no animators, in these cases this check prevents execution of
notifyAnimationsRan() leads to Fatal Assert crash of runRemainingAnimations.

Allowing the animation to happen irrespective of animators solves the problem.

Change-Id: Ifa72286cdc6ff785fcc999f3b951dd787e7003e9
libs/hwui/AnimatorManager.cpp