From 8b699792b677bd4dd8442b32641ac09d48fdd79c Mon Sep 17 00:00:00 2001 From: Chet Haase Date: Fri, 5 Aug 2011 15:20:19 -0700 Subject: 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 --- api/current.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'api') 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 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); -- cgit v1.1