Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0647d5b5 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Ease out clock translation

Test: visual
Bug: 73830624
Bug: 74586970
Change-Id: I896778b00d85252a8ac606e71ea20e9b4384bbb0
parent 781533dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -193,7 +193,8 @@ public class KeyguardClockPositionAlgorithm {
        float clockYTarget = mCurrentlySecure ? mMinTopMargin : -mKeyguardStatusHeight;
        float clockYTarget = mCurrentlySecure ? mMinTopMargin : -mKeyguardStatusHeight;


        // Move clock up while collapsing the shade
        // 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);
        final float clockY = MathUtils.lerp(clockYTarget, clockYRegular, shadeExpansion);


        return (int) MathUtils.lerp(clockY, clockYDark, mDarkAmount);
        return (int) MathUtils.lerp(clockY, clockYDark, mDarkAmount);