Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea1871c7 authored by Lyn Han's avatar Lyn Han Committed by Android (Google) Code Review
Browse files

Merge "Cancel existing QsClippingAnimation when creating new one" into sc-dev

parents e31184cb a39aece0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2336,6 +2336,9 @@ public class NotificationPanelViewController extends PanelViewController {
            final int startTop = mKeyguardStatusAreaClipBounds.top;
            final int startRight = mKeyguardStatusAreaClipBounds.right;
            final int startBottom = mKeyguardStatusAreaClipBounds.bottom;
            if (mQsClippingAnimation != null) {
                mQsClippingAnimation.cancel();
            }
            mQsClippingAnimation = ValueAnimator.ofFloat(0.0f, 1.0f);
            mQsClippingAnimation.setInterpolator(Interpolators.FAST_OUT_SLOW_IN);
            mQsClippingAnimation.setDuration(mNotificationBoundsAnimationDuration);