am e7218240: Merge "Add a method for clearing all animations on a thread." into honeycomb
* commit 'e7218240ab1e52de0f7d16c72b0a5b87679427a1': Add a method for clearing all animations on a thread.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user