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

Commit 004b3368 authored by Brad Hinegardner's avatar Brad Hinegardner Committed by Android (Google) Code Review
Browse files

Merge "Add margin below legacy default clock to account for date weather move" into main

parents 8245ed27 2317cdcb
Loading
Loading
Loading
Loading
+21 −6
Original line number Diff line number Diff line
@@ -191,12 +191,27 @@ constructor(
        constraints.apply {
            connect(ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE, START, PARENT_ID, START)
            connect(ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE, END, guideline, END)
            if (
                com.android.systemui.shared.Flags.clockReactiveSmartspaceLayout() &&
                    !com.android.systemui.shared.Flags.clockReactiveVariants()
            ) {
                connect(
                    ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE,
                    BOTTOM,
                    R.id.device_entry_icon_view,
                    TOP,
                    context.resources.getDimensionPixelSize(
                        clocksR.dimen.date_weather_view_height
                    ) * 2,
                )
            } else {
                connect(
                    ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE,
                    BOTTOM,
                    R.id.device_entry_icon_view,
                    TOP,
                )
            }
            val largeClockTopMargin =
                if (com.android.systemui.shared.Flags.clockReactiveSmartspaceLayout()) {
                    keyguardClockViewModel.getLargeClockTopMargin() +