summaryrefslogtreecommitdiff
path: root/libs/hwui/Animator.cpp
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2014-08-29 10:40:56 -0700
committerJohn Reck <jreck@google.com>2014-08-29 10:40:56 -0700
commit4d2c47206a8e1706e5f89ef73c0e50e7321bf862 (patch)
treeb31985b81f2e0b4742a44c1673974d4ed5e049a0 /libs/hwui/Animator.cpp
parente11ac78ccd907159f2b75fd3f90dd59c279ae11e (diff)
Listener callbacks ordering fixups
Bug: 17228458 Bug: 17317816 Ensure that onStart is called prior to onCancel/onFinished if those happen prior to the UI-thread handled start delay. Ensure that onFinished is called if cancel/end is called Change-Id: I23c16ea1c4f925d59d41ec5281d62dfc0c38595b
Diffstat (limited to 'libs/hwui/Animator.cpp')
-rw-r--r--libs/hwui/Animator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Animator.cpp b/libs/hwui/Animator.cpp
index 1c697d5b8bae..da65f381b514 100644
--- a/libs/hwui/Animator.cpp
+++ b/libs/hwui/Animator.cpp
@@ -95,6 +95,8 @@ void BaseRenderNodeAnimator::pushStaging(AnimationContext& context) {
// Oh boy, we're starting! Man the battle stations!
if (mPlayState == RUNNING) {
transitionToRunning(context);
+ } else if (mPlayState == FINISHED) {
+ callOnFinishedListener(context);
}
}
}