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
This commit is contained in:
Josh Tsuji
2021-06-28 15:58:37 -04:00
parent 82f0979e7b
commit ad51d1423a

View File

@@ -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?) {