diff options
author | Chet Haase <chet@google.com> | 2011-08-05 15:20:19 -0700 |
---|---|---|
committer | Chet Haase <chet@google.com> | 2011-08-08 15:05:53 -0700 |
commit | 8b699792b677bd4dd8442b32641ac09d48fdd79c (patch) | |
tree | eaf1e380f6bb3b430ed524f7c6d7f8f95c498d92 /api | |
parent | beb46417831af257ec80f29e9a68b92cf34c1e97 (diff) | |
download | frameworks_base-8b699792b677bd4dd8442b32641ac09d48fdd79c.zip frameworks_base-8b699792b677bd4dd8442b32641ac09d48fdd79c.tar.gz frameworks_base-8b699792b677bd4dd8442b32641ac09d48fdd79c.tar.bz2 |
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 'api')
-rw-r--r-- | api/current.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index 5a599ce..73fe3b2 100644 --- a/api/current.txt +++ b/api/current.txt @@ -2179,6 +2179,7 @@ package android.animation { method public java.util.ArrayList<android.animation.Animator.AnimatorListener> getListeners(); method public abstract long getStartDelay(); method public abstract boolean isRunning(); + method public boolean isStarted(); method public void removeAllListeners(); method public void removeListener(android.animation.Animator.AnimatorListener); method public abstract android.animation.Animator setDuration(long); |