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

Commit c29b75c5 authored by Matt Pietal's avatar Matt Pietal
Browse files

Lockscreen - AOD layout adjustments

Make sure the clock/smart space stay top-aligned on AOD

Bug: 170729566
Test: adb shell settings put global show_new_lockscreen 1

Change-Id: I8fcda941a0e012196ad310198388938e0af3a51f
parent 1af66d72
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -241,6 +241,13 @@ public class KeyguardClockPositionAlgorithm {
        clockYDark = MathUtils.lerp(clockYBouncer, clockYDark, shadeExpansion);

        float darkAmount = mBypassEnabled && !mHasCustomClock ? 1.0f : mDarkAmount;

        // TODO(b/12836565) - prototyping only adjustment
        if (mLockScreenMode != KeyguardUpdateMonitor.LOCK_SCREEN_MODE_NORMAL) {
            // This will keep the clock at the top for AOD
            darkAmount = 0f;
        }

        return (int) (MathUtils.lerp(clockY, clockYDark, darkAmount) + mEmptyDragAmount);
    }