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

Commit 84c5c804 authored by Sherry Zhou's avatar Sherry Zhou
Browse files

Fix clock being clipped when scaled down in new customization picker ui

Flag: com.android.systemui.shared.new_customization_picker_ui
Bug: 368291352
Test: manual test, turn on the flag, scroll wallpaper picker, observe
that clock is no longer clipped.

Change-Id: Id880c2a752e8b6cc5fb9337b4fe6e294d59687b1
parent f5eda4ab
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)