From 0647d5b5d879936de956a8f0d8c96007920e56f6 Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Mon, 19 Mar 2018 17:21:52 -0700 Subject: [PATCH] Ease out clock translation Test: visual Bug: 73830624 Bug: 74586970 Change-Id: I896778b00d85252a8ac606e71ea20e9b4384bbb0 --- .../statusbar/phone/KeyguardClockPositionAlgorithm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java index 1bd5e33031893..19e829592f79d 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardClockPositionAlgorithm.java @@ -193,7 +193,8 @@ public class KeyguardClockPositionAlgorithm { float clockYTarget = mCurrentlySecure ? mMinTopMargin : -mKeyguardStatusHeight; // Move clock up while collapsing the shade - final float shadeExpansion = mExpandedHeight / mMaxPanelHeight; + float shadeExpansion = mExpandedHeight / mMaxPanelHeight; + shadeExpansion = Interpolators.FAST_OUT_LINEAR_IN.getInterpolation(shadeExpansion); final float clockY = MathUtils.lerp(clockYTarget, clockYRegular, shadeExpansion); return (int) MathUtils.lerp(clockY, clockYDark, mDarkAmount);