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

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

[flexiglass] Simplify hydrateFullWidth()

Bug: 354926927
Bug: 411365508
Test: All unit tests pass.
Flag: com.android.systemui.scene_container
Change-Id: I47f0f6777f88ef247fa2deced7559cd10eaa8a6f
parent bb3e9802
Loading
Loading
Loading
Loading
+2 −9
Original line number Diff line number Diff line
@@ -149,15 +149,8 @@ constructor(
        if (SceneContainerFlag.isEnabled) {
            val shadeModeInteractor = shadeModeInteractorProvider.get()
            applicationScope.launch {
                combine(shadeModeInteractor.shadeMode, shadeDisplayStateInteractor.isWideScreen) {
                        shadeMode,
                        isWideScreen ->
                        when (shadeMode) {
                            is ShadeMode.Single -> true
                            is ShadeMode.Split -> false
                            is ShadeMode.Dual -> !isWideScreen
                        }
                    }
                shadeModeInteractor.isShadeLayoutWide
                    .map { !it }
                    .collect { isFullWidth ->
                        nsslc.setIsFullWidth(isFullWidth)
                        scrimController.setClipsQsScrim(isFullWidth)