Merge "Fix small clock preview overlapped with the smart space" into main
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 0a84886..6579ea1 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 @@
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)
}
}