From ad51d1423a54ee9d218cda1b3e69e221a0b50485 Mon Sep 17 00:00:00 2001 From: Josh Tsuji Date: Mon, 28 Jun 2021 15:58:37 -0400 Subject: [PATCH] Use a linear interpolator for screen off, since the reveal effects already interpolate the reveal amount internally. This was 'doubling up' interpolators causing unwanted timing effects, such as a seeming pause at the beginning. Fixes: 191149706 Test: screen off begins faster Change-Id: I92ad0cd5059b84a79069a4d3da37da1f92d03548 --- .../statusbar/phone/UnlockedScreenOffAnimationController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt index 9a04d39c4e9e9..6b00dd4b49e8c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/UnlockedScreenOffAnimationController.kt @@ -57,7 +57,7 @@ class UnlockedScreenOffAnimationController @Inject constructor( private val lightRevealAnimator = ValueAnimator.ofFloat(1f, 0f).apply { duration = LIGHT_REVEAL_ANIMATION_DURATION - interpolator = Interpolators.FAST_OUT_SLOW_IN_REVERSE + interpolator = Interpolators.LINEAR addUpdateListener { lightRevealScrim.revealAmount = it.animatedValue as Float } addListener(object : AnimatorListenerAdapter() { override fun onAnimationCancel(animation: Animator?) {