summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2025-03-04 18:12:31 +0800
committer Riddle Hsu <riddlehsu@google.com> 2025-03-05 16:06:54 +0800
commit57341678a740fa4931eb66c2a92d6e5e761b4fb5 (patch)
tree6f973358ed9cfd7a7ed20305c596cb3689a04324 /libs/input/SpriteController.cpp
parent320410f44a427dcd75b0e34fd83f2716a47a79ae (diff)
Run pending animation end callback immediately on cancel
To avoid calling the end callback while the next new animation is started. For example, at the last frame of anim_1's onAnimationUpdate, it calls anim_1.cancel(); anim_2.start(); The correct order should be anim_1 onAnimationEnd anim_2 onAnimationStart instead of anim_2 onAnimationStart anim_1 onAnimationEnd Bug: 399819784 Bug: 300035126 Flag: com.android.window.flags.system_ui_post_animation_end Test: atest ValueAnimatorTests#testCancelOnPendingEndListener AnimatorSetCallsTest#testCancelOnPendingEndListener Change-Id: Ic28282128708d1722f039a6b0b414c6af8950c4b
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions