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

Commit 420b22c7 authored by Lyn Han's avatar Lyn Han Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15390005

Change-Id: I9a7c7869eb7cb633170f8e31fadb84cce5bbcc54
parents 1783081b ea1871c7
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);