diff options
| author | 2024-08-21 10:08:08 +0000 | |
|---|---|---|
| committer | 2024-08-21 11:52:38 +0000 | |
| commit | f5be264a60cbd8aa5a2df4ce2d8a725b34783ea3 (patch) | |
| tree | 76e743d7e65b5063c29559dfbe9ad8ab03d0adea | |
| parent | 365edfba6397a805d1d161e6e7ba58ef9257fde7 (diff) | |
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
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt b/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt index 0a8488624b85..6579ea162ee2 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt +++ b/packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt @@ -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) } } |