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

Commit ef4b55de authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

Move from using VerticalAlignment.BASELINE to VerticalAlignment.CENTER

Bug: 393118517
Test: Manually verified small clock doesn't clip w/ both flags
Flag: com.android.systemui.scene_container
Flag: com.android.systemui.shared.clock_reactive_variants
Change-Id: Ia9294f5ce6ef7cd250be5b9485331396265c0e5d
parent c896855c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import com.android.systemui.plugins.clocks.WeatherData
import com.android.systemui.plugins.clocks.ZenData
import com.android.systemui.shared.clocks.view.FlexClockView
import com.android.systemui.shared.clocks.view.HorizontalAlignment
import com.android.systemui.shared.clocks.view.VerticalAlignment
import java.util.Locale
import java.util.TimeZone
import kotlin.math.max
@@ -255,7 +256,7 @@ class FlexClockFaceController(clockCtx: ClockContext, private val isLargeClock:
                timespec = DigitalTimespec.TIME_FULL_FORMAT,
                style = FontTextStyle(fontSizeScale = 0.98f),
                aodStyle = FontTextStyle(),
                alignment = DigitalAlignment(HorizontalAlignment.LEFT, null),
                alignment = DigitalAlignment(HorizontalAlignment.LEFT, VerticalAlignment.CENTER),
                dateTimeFormat = "h:mm",
            )
    }