Merge "Add a method for clearing all animations on a thread." into honeycomb

This commit is contained in:
Patrick Dubroy
2011-01-16 17:28:11 -08:00
committed by Android (Google) Code Review

View File

@@ -1192,4 +1192,16 @@ public class ValueAnimator extends Animator {
public static int getCurrentAnimationsCount() {
return sAnimations.get().size();
}
/**
* Clear all animations on this thread, without canceling or ending them.
* This should be used with caution.
*
* @hide
*/
public static void clearAllAnimations() {
sAnimations.get().clear();
sPendingAnimations.get().clear();
sDelayedAnims.get().clear();
}
}