From ee4629c089e909dd8ac3909b243c7d846a28a71c Mon Sep 17 00:00:00 2001 From: Josh Tsuji Date: Thu, 5 May 2022 15:18:39 -0400 Subject: [PATCH] Adjust interpolator for shade unlock to match mocks. Bug: 197636887 Test: it looks nice Change-Id: Ib410599faf0efe65e661636886a8f6b56d197600 --- .../statusbar/phone/NotificationPanelViewController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 985df423d744d..7da32384b7667 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -24,6 +24,7 @@ import static androidx.constraintlayout.widget.ConstraintSet.PARENT_ID; import static com.android.internal.jank.InteractionJankMonitor.CUJ_NOTIFICATION_SHADE_QS_EXPAND_COLLAPSE; import static com.android.keyguard.KeyguardClockSwitch.LARGE; import static com.android.keyguard.KeyguardClockSwitch.SMALL; +import static com.android.systemui.animation.Interpolators.EMPHASIZED_ACCELERATE; import static com.android.systemui.animation.Interpolators.EMPHASIZED_DECELERATE; import static com.android.systemui.classifier.Classifier.QS_COLLAPSE; import static com.android.systemui.classifier.Classifier.QUICK_SETTINGS; @@ -936,7 +937,7 @@ public class NotificationPanelViewController extends PanelViewController { // the launcher icons animation starts, so use that as our // duration. .setDuration(unlockAnimationStartDelay) - .setInterpolator(EMPHASIZED_DECELERATE) + .setInterpolator(EMPHASIZED_ACCELERATE) .withEndAction(() -> { instantCollapse(); mView.setAlpha(1f);