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

Commit 2098a767 authored by Sherry Zhou's avatar Sherry Zhou Committed by Android (Google) Code Review
Browse files

Merge "Fix clock being clipped when scaled down in new customization picker ui" into main

parents ec6da883 84c5c804
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,4 +19,5 @@
    android:importantForAccessibility="noHideDescendants"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_gravity="center" />
 No newline at end of file
    android:layout_gravity="center"
    android:clipChildren="false"/>
 No newline at end of file
+1 −2
Original line number Diff line number Diff line
@@ -63,8 +63,7 @@ class ClockHostView2(context: Context, attrs: AttributeSet?) : FrameLayout(conte
    private fun updatePivotAndScale() {
        when (clockSize) {
            ClockSize.DYNAMIC -> {
                pivotX = (width / 2).toFloat()
                pivotY = (height / 2).toFloat()
                resetPivot()
            }
            ClockSize.SMALL -> {
                pivotX = getCenteredHostViewPivotX(this)