Merge "Add a method for clearing all animations on a thread." into honeycomb
This commit is contained in:
committed by
Android (Google) Code Review
commit
e7218240ab
@@ -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