diff options
Diffstat (limited to 'libs/hwui/Animator.cpp')
| -rw-r--r-- | libs/hwui/Animator.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libs/hwui/Animator.cpp b/libs/hwui/Animator.cpp index da65f38..4f3a573 100644 --- a/libs/hwui/Animator.cpp +++ b/libs/hwui/Animator.cpp @@ -161,6 +161,13 @@ bool BaseRenderNodeAnimator::animate(AnimationContext& context) { return false; } +void BaseRenderNodeAnimator::forceEndNow(AnimationContext& context) { + if (mPlayState < FINISHED) { + mPlayState = FINISHED; + callOnFinishedListener(context); + } +} + void BaseRenderNodeAnimator::callOnFinishedListener(AnimationContext& context) { if (mListener.get()) { context.callOnFinished(this, mListener.get()); |
