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

Commit 3b11fdb8 authored by Chandru S's avatar Chandru S Committed by Android (Google) Code Review
Browse files

Revert "Fix for shade transparency bug when bouncer_ui_revamp fl..."

Revert submission 32837458

Reason for revert: This introduced a bug :( we rely on isBlurOpaque=false+blur radius of 0 to show the wallpaper behind the lockscreen. With this fix+battery saver enabled, the wallpaper is no longer visible. Working on a better fix that handles all scenarios.

Reverted changes: /q/submissionid:32837458

Change-Id: I512dab0ef8705cc8380633c43b65033ef5040141
parent 5869e2f8
Loading
Loading
Loading
Loading
+3 −8
Original line number Diff line number Diff line
@@ -316,14 +316,9 @@ constructor(
    }

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

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