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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user