summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Sherry Zhou <yuandizhou@google.com> 2024-08-22 06:35:21 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-22 06:35:21 +0000
commitbb0348ec6a0a0c49f6c6db048d196a2bdf098161 (patch)
tree881e15d28c03c2092e24dc4073dcb9a750f57e74
parenta8bcbffe440e5e432f70e1a04e0775a200ea023d (diff)
parentf5be264a60cbd8aa5a2df4ce2d8a725b34783ea3 (diff)
Merge "Fix small clock preview overlapped with the smart space" into main
-rw-r--r--packages/SystemUI/src/com/android/systemui/keyguard/ui/viewmodel/KeyguardPreviewSmartspaceViewModel.kt3
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)
}
}