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

Commit f5be264a authored by “Sherry's avatar “Sherry
Browse files

Fix small clock preview overlapped with the smart space

The reason is that status_bar_header_height_keyguard is parsed as 8 in
Panther, so we replace it with SystemBarUtils.getStatusBarHeight(context)

Bug: 360905801
Test: manual test in foldable and non-foldable device, observe that
small clock and smartspace no longer overlap in wallpaper picker preview
Flag: EXEMPT bugfix

Change-Id: I9b37805d35891ad3c1542d984934c5e1efcfa874
parent 365edfba
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@
package com.android.systemui.keyguard.ui.viewmodel

import android.content.Context
import com.android.internal.policy.SystemBarUtils
import com.android.systemui.keyguard.domain.interactor.KeyguardClockInteractor
import com.android.systemui.keyguard.shared.model.ClockSizeSetting
import com.android.systemui.res.R
@@ -81,7 +82,7 @@ constructor(
                getDimensionPixelSize(R.dimen.keyguard_split_shade_top_margin)
            } else {
                getDimensionPixelSize(R.dimen.keyguard_clock_top_margin) +
                    getDimensionPixelSize(R.dimen.status_bar_header_height_keyguard) +
                    SystemBarUtils.getStatusBarHeight(context) +
                    getDimensionPixelSize(R.dimen.keyguard_smartspace_top_offset)
            }
        }