diff options
| author | 2021-04-19 11:18:16 +0200 | |
|---|---|---|
| committer | 2021-04-19 11:18:16 +0200 | |
| commit | 18e2c4c5d65f2a41ced87cacfaf88866ec9c7198 (patch) | |
| tree | 7e42687d9f33166759419c0562884b33ff59989f | |
| parent | 229a149a9104116c80ac3d012cf531d399ae997e (diff) | |
Use correct alpha interpolator for notification animation.
Bug: 181654098
Test: Tap a notification
Change-Id: I4e75a6f5c89170e95cd6c93cd80611e22b0b4127
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/animation/src/com/android/systemui/animation/ActivityLaunchAnimator.kt b/packages/SystemUI/animation/src/com/android/systemui/animation/ActivityLaunchAnimator.kt index 03d844a34fc1..947ae8af8f75 100644 --- a/packages/SystemUI/animation/src/com/android/systemui/animation/ActivityLaunchAnimator.kt +++ b/packages/SystemUI/animation/src/com/android/systemui/animation/ActivityLaunchAnimator.kt @@ -39,7 +39,7 @@ class ActivityLaunchAnimator(context: Context) { ANIMATION_DURATION - ANIMATION_DURATION_NAV_FADE_IN private const val LAUNCH_TIMEOUT = 1000L - private val CONTENT_FADE_OUT_INTERPOLATOR = PathInterpolator(0f, 0f, 0.2f, 1f) + @JvmField val CONTENT_FADE_OUT_INTERPOLATOR = PathInterpolator(0f, 0f, 0.2f, 1f) private val WINDOW_FADE_IN_INTERPOLATOR = PathInterpolator(0f, 0f, 0.6f, 1f) private val NAV_FADE_IN_INTERPOLATOR = PathInterpolator(0f, 0f, 0f, 1f) private val NAV_FADE_OUT_INTERPOLATOR = PathInterpolator(0.2f, 0f, 1f, 1f) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index 500838fac5f9..d21af1135e35 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -2085,7 +2085,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView contentView.animate() .alpha(0f) .setDuration(ActivityLaunchAnimator.ANIMATION_DURATION_FADE_OUT_CONTENT) - .setInterpolator(Interpolators.ALPHA_OUT); + .setInterpolator(ActivityLaunchAnimator.CONTENT_FADE_OUT_INTERPOLATOR); setAboveShelf(true); mExpandAnimationRunning = true; getViewState().cancelAnimations(this); |