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

Commit 66a34042 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Set keyguardPreviewRenderer large clock margin to real large clock margin" into main

parents 5d978bb6 5412cd41
Loading
Loading
Loading
Loading
+13 −6
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ open class DefaultClockFaceLayout(val view: View) : ClockFaceLayout {
    }

    override fun applyExternalDisplayPresentationConstraints(
        constraints: ConstraintSet,
        constraints: ConstraintSet
    ): ConstraintSet {
        return constraints.apply {
            constrainWidth(ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE, WRAP_CONTENT)
@@ -70,11 +70,18 @@ open class DefaultClockFaceLayout(val view: View) : ClockFaceLayout {
            constrainMaxHeight(ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE, 0)

            val largeClockTopMargin =
                if (com.android.systemui.shared.Flags.clockReactiveSmartspaceLayout()) {
                    view.context.getSafeStatusBarHeight() / 2 +
                        res.getDimensionPixelSize(clocksR.dimen.keyguard_smartspace_top_offset) +
                        res.getDimensionPixelSize(clocksR.dimen.enhanced_smartspace_height)
                } else {
                    view.context.getSafeStatusBarHeight() +
                        res.getDimensionPixelSize(clocksR.dimen.small_clock_padding_top) +
                        res.getDimensionPixelSize(clocksR.dimen.keyguard_smartspace_top_offset) +
                        res.getDimensionPixelSize(clocksR.dimen.date_weather_view_height) +
                        res.getDimensionPixelSize(clocksR.dimen.enhanced_smartspace_height)
                }

            connect(
                ClockViewIds.LOCKSCREEN_CLOCK_VIEW_LARGE,
                TOP,