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

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

Merge "[Dual Shade] Fix Notification Blur getting stuck" into main

parents af19c584 680b902f
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -55,7 +55,6 @@ import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.combine
import kotlinx.coroutines.flow.combineTransform
import kotlinx.coroutines.flow.distinctUntilChanged
import kotlinx.coroutines.flow.flatMapLatest
import kotlinx.coroutines.flow.flowOf
@@ -227,16 +226,7 @@ constructor(
        if (SceneContainerFlag.isEnabled) {
            shadeModeInteractor.shadeMode.flatMapLatest { shadeMode ->
                when (shadeMode) {
                    ShadeMode.Dual ->
                        combineTransform(
                            shadeInteractor.shadeExpansion,
                            shadeInteractor.qsExpansion,
                        ) { notificationShadeExpansion, qsExpansion ->
                            if (notificationShadeExpansion == 0f) {
                                // Blur out notifications as the QS overlay panel expands
                                emit(qsExpansion)
                            }
                        }
                    ShadeMode.Dual -> shadeInteractor.qsExpansion
                    else -> flowOf(0f)
                }
            }