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

Commit d7517944 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Simplify boolean expression." into main

parents 254abe92 132e5350
Loading
Loading
Loading
Loading
+4 −9
Original line number Original line Diff line number Diff line
@@ -103,15 +103,10 @@ constructor(
        combine(blurInteractor.isBlurCurrentlySupported, shadeInteractor.isAnyFullyExpanded) {
        combine(blurInteractor.isBlurCurrentlySupported, shadeInteractor.isAnyFullyExpanded) {
                blurSupported,
                blurSupported,
                anyShadeFullyExpanded ->
                anyShadeFullyExpanded ->
                return@combine if (blurSupported) {
                if (blurSupported) {
                    when {
                    // scrims will be opaque when shade is fully expanded
                    // scrims will be opaque when shade is fully expanded
                    // Fall back to old behavior when shade blur is not enabled.
                    // Fall back to old behavior when shade blur is not enabled.
                        anyShadeFullyExpanded && !Flags.notificationShadeBlur() -> true
                    !Flags.notificationShadeBlur() && anyShadeFullyExpanded
                        // surface is never opaque in other scenarios so that the wallpaper/surface
                        // behind is always visible.
                        else -> false
                    }
                } else {
                } else {
                    anyShadeFullyExpanded
                    anyShadeFullyExpanded
                }
                }