diff options
| author | 2011-08-05 15:20:19 -0700 | |
|---|---|---|
| committer | 2011-08-08 15:05:53 -0700 | |
| commit | 8b699792b677bd4dd8442b32641ac09d48fdd79c (patch) | |
| tree | eaf1e380f6bb3b430ed524f7c6d7f8f95c498d92 /libs/rs/rsProgram.cpp | |
| parent | beb46417831af257ec80f29e9a68b92cf34c1e97 (diff) | |
Fix cancellation of AnimatorSet when child animation has delay
Previously, AnimatorSet incorrectly checked whether child animations were
'running' to figure out what to cancel. If a child animation was started, but
sitting in a startDelay phase, it was not 'running', so the right cancel/end
events would not propagate.
The fix is to add a new isStarted() API to Animator, which returns true when
the animator has started (but not yet ended), regardless of whether the animator
has a startDelay or not. It's basically a superset of the existing isRunning()
method, which only returns true when an animator has actually started setting values.
Change-Id: I126814cb6637b58295b6d18d9b155235671f99be
Diffstat (limited to 'libs/rs/rsProgram.cpp')
0 files changed, 0 insertions, 0 deletions