Loading packages/SystemUI/customization/clocks/common/src/com/android/systemui/customization/clocks/DefaultClockFaceLayout.kt +13 −6 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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, Loading Loading
packages/SystemUI/customization/clocks/common/src/com/android/systemui/customization/clocks/DefaultClockFaceLayout.kt +13 −6 Original line number Diff line number Diff line Loading @@ -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) Loading @@ -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, Loading