Skip to content

Commit

Permalink
Fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 8, 2025
1 parent 06689bf commit 7a4d119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lawnchair/src/app/lawnchair/views/LawnchairScrimView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7a4d119

Please sign in to comment.