Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 132e5350 authored by Chandru S's avatar Chandru S
Browse files

Simplify boolean expression.

Addresses a comment from a previous CL.

Bug: 405288154
Test: NA
Flag: com.android.systemui.bouncer_ui_revamp
Change-Id: If8b7774bcf6800cb5b263500e0b36287159dca0f
parent b37c76d0
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -103,15 +103,10 @@ constructor(
        combine(blurInteractor.isBlurCurrentlySupported, shadeInteractor.isAnyFullyExpanded) {
                blurSupported,
                anyShadeFullyExpanded ->
                return@combine if (blurSupported) {
                    when {
                if (blurSupported) {
                    // scrims will be opaque when shade is fully expanded
                    // Fall back to old behavior when shade blur is not enabled.
                        anyShadeFullyExpanded && !Flags.notificationShadeBlur() -> true
                        // surface is never opaque in other scenarios so that the wallpaper/surface
                        // behind is always visible.
                        else -> false
                    }
                    !Flags.notificationShadeBlur() && anyShadeFullyExpanded
                } else {
                    anyShadeFullyExpanded
                }