Fix style

This commit is contained in:
Goooler
2025-01-08 13:16:24 +08:00
parent 06689bf0dd
commit 7a4d119afa

View File

@@ -23,7 +23,8 @@ class LawnchairScrimView(context: Context, attrs: AttributeSet?) : ScrimView(con
override fun updateSysUiColors() {
val threshold = STATUS_BAR_COLOR_FORCE_UPDATE_THRESHOLD
val forceChange = visibility == VISIBLE &&
alpha > threshold && Color.alpha(mBackgroundColor) / (255f * drawerOpacity) > threshold
alpha > threshold &&
Color.alpha(mBackgroundColor) / (255f * drawerOpacity) > threshold
with(systemUiController) {
if (forceChange) {
updateUiState(SystemUiController.UI_STATE_SCRIM_VIEW, !isScrimDark)