summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2025-03-06 17:41:40 +0800
committer Riddle Hsu <riddlehsu@google.com> 2025-03-07 12:43:34 +0800
commit2f6e4a9748d72a26b344ced48f34853609ab2ecb (patch)
tree04c670fcb2b728ce965727800f1da04dd28f2e0e /libs/androidfw/AssetsProvider.cpp
parentb16925e3255e0bf525bd0ab3b6ce43bd9d97684b (diff)
Return running state before calling animation end callback
This only affects if setPostNotifyEndListenerEnabled is set. Previously, anim.isRunning() returns false if the end callback is posted, then the app may miss to call end or cancel. And if the app starts a new animation immediately, the callbacks between the old and new animations will have overlap. So when the end listener is pending, isRunning() and isStarted() should return true. And if app invoke cancel() or end(), the pending end listener should be called and consumed immediately. Fix: 399819784 Bug: 300035126 Flag: com.android.window.flags.system_ui_post_animation_end Test: atest ValueAnimatorTests#testEndOnPendingEndListener AnimatorSetCallsTest#testEndOnPendingEndListener Change-Id: Ie3aa2ef14cb53d91a04fdfac012ab63494c69990
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions