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

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

[Dual Shade] Ensure !is ShadeMode.Dual is only emitted once.

It was emitted multiple times when switching between Single and Split
shades.

Fix: 436926610
Test: Manually tested by opening the notifications shade on a desktop
 device.
Flag: com.android.systemui.scene_container
Change-Id: I2f75a2202ffe715fdc25de5fabd2aed1205d60ef
parent dbd7a5ee
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ constructor(
            launch {
                shadeModeInteractor.shadeMode
                    .filter { it !is ShadeMode.Dual }
                    .distinctUntilChanged()
                    .collect {
                        withContext(mainDispatcher) {
                            sceneInteractor.snapToScene(