From 7a4d119afadfcbb850e3e6a9eec88de79f360985 Mon Sep 17 00:00:00 2001 From: Goooler Date: Wed, 8 Jan 2025 13:16:24 +0800 Subject: [PATCH] Fix style --- lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt b/lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt index 401a41264f2..10987a53b12 100644 --- a/lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt +++ b/lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt @@ -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)