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

Commit a39aece0 authored by Lyn Han's avatar Lyn Han
Browse files

Cancel existing QsClippingAnimation when creating new one

Bug: 191436459

[Manual tests for regressions]
Test: open shade from lockscreen, open fullscreen qs
Test: open unlocked shade, open fullscreen qs
Test: directly open fullscreen qs from top of lockscreen
Test: directly open fullscreen qs via two-finger swipe while unlocked

Change-Id: Ibb8f3e35e5fc14e4e029e98fa3dd83a20b470ebf
parent 3d896663
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2326,6 +2326,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);