Loading packages/SystemUI/src/com/android/systemui/bubbles/animation/PhysicsAnimationLayout.java +11 −1 Original line number Diff line number Diff line Loading @@ -407,8 +407,18 @@ public class PhysicsAnimationLayout extends FrameLayout { return; } cancelAllAnimationsOfProperties( mController.getAnimatedProperties().toArray(new DynamicAnimation.ViewProperty[]{})); } /** Cancels all animations that are running on all child views, for the given properties. */ public void cancelAllAnimationsOfProperties(DynamicAnimation.ViewProperty... properties) { if (mController == null) { return; } for (int i = 0; i < getChildCount(); i++) { for (DynamicAnimation.ViewProperty property : mController.getAnimatedProperties()) { for (DynamicAnimation.ViewProperty property : properties) { final DynamicAnimation anim = getAnimationAtIndex(property, i); if (anim != null) { anim.cancel(); Loading packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java +3 −1 Original line number Diff line number Diff line Loading @@ -731,7 +731,9 @@ public class StackAnimationController extends // If we're not the active controller, we don't want to physically move the bubble views. if (isActiveController()) { mLayout.cancelAllAnimations(); // Cancel animations that could be moving the views. mLayout.cancelAllAnimationsOfProperties( DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); cancelStackPositionAnimations(); // Since we're not using the chained animations, apply the offsets manually. Loading Loading
packages/SystemUI/src/com/android/systemui/bubbles/animation/PhysicsAnimationLayout.java +11 −1 Original line number Diff line number Diff line Loading @@ -407,8 +407,18 @@ public class PhysicsAnimationLayout extends FrameLayout { return; } cancelAllAnimationsOfProperties( mController.getAnimatedProperties().toArray(new DynamicAnimation.ViewProperty[]{})); } /** Cancels all animations that are running on all child views, for the given properties. */ public void cancelAllAnimationsOfProperties(DynamicAnimation.ViewProperty... properties) { if (mController == null) { return; } for (int i = 0; i < getChildCount(); i++) { for (DynamicAnimation.ViewProperty property : mController.getAnimatedProperties()) { for (DynamicAnimation.ViewProperty property : properties) { final DynamicAnimation anim = getAnimationAtIndex(property, i); if (anim != null) { anim.cancel(); Loading
packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java +3 −1 Original line number Diff line number Diff line Loading @@ -731,7 +731,9 @@ public class StackAnimationController extends // If we're not the active controller, we don't want to physically move the bubble views. if (isActiveController()) { mLayout.cancelAllAnimations(); // Cancel animations that could be moving the views. mLayout.cancelAllAnimationsOfProperties( DynamicAnimation.TRANSLATION_X, DynamicAnimation.TRANSLATION_Y); cancelStackPositionAnimations(); // Since we're not using the chained animations, apply the offsets manually. Loading