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

Commit 5869e2f8 authored by Chandru S's avatar Chandru S
Browse files

Fix for shade transparency bug when bouncer_ui_revamp flag is not enabled.

This is required for devices that have shade blur enabled but bouncer blur disabled in the trunkfood 50 population.

Bug: 405288154
Test: disable bouncer_ui_revamp, enable/disable battery saver repeatedly
Flag: com.android.systemui.notification_shade_blur
Change-Id: Ie62c35fbe3eec1240c9fff9ff6034c5402bfa0cd
parent c1c60a54
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -316,9 +316,14 @@ constructor(
    }

    private val shouldBlurBeOpaque: Boolean
        get() =
            if (Flags.notificationShadeBlur()) false
            else scrimsVisible && !areBlursDisabledForAppLaunch
        get() {
            return if (Flags.notificationShadeBlur()) {
                // blur should be opaque when blur is not supported.
                !windowRootViewBlurInteractor.isBlurCurrentlySupported.value
            } else {
                scrimsVisible && !areBlursDisabledForAppLaunch
            }
        }

    /** Callback that updates the window blur value and is called only once per frame. */
    @VisibleForTesting