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

Commit a33a9bea authored by burakov's avatar burakov Committed by Danny Burakov
Browse files

[Dual Shade] Notifications shouldn't blur if the blur flag is disabled.

Bug: 400530515
Bug: 396346867
Test: Manually tested by opening and closing the shade with the blur
 flag on and off, and verifying the expected behavior.
Flag: com.android.systemui.scene_container
Change-Id: I4aea6b22e918454edf2b26462adbee59e0b77f8b
parent a9ee1862
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.statusbar.notification.stack.ui.viewbinder
import android.util.Log
import com.android.app.tracing.coroutines.flow.collectTraced
import com.android.app.tracing.coroutines.launchTraced as launch
import com.android.systemui.Flags
import com.android.systemui.common.ui.ConfigurationState
import com.android.systemui.common.ui.view.onLayoutChanged
import com.android.systemui.dagger.SysUISingleton
@@ -96,7 +97,10 @@ constructor(
                }
            }
            launch { viewModel.qsExpandFraction.collectTraced { view.setQsExpandFraction(it) } }
            if (Flags.notificationShadeBlur()) {
                launch { viewModel.blurRadius(maxBlurRadius).collect(view::setBlurRadius) }
            }

            launch {
                viewModel.isShowingStackOnLockscreen.collectTraced {
                    view.setShowingStackOnLockscreen(it)