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

Commit 8afdd72a authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Merge "Ease out clock translation" into pi-dev am: 25535243

am: f9727309

Change-Id: Id1522c3a133f8e7234e6fc8dcbf1e480a7d8a617
parents fc2d5449 f9727309
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);