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

Commit 7102e186 authored by Danny Burakov's avatar Danny Burakov Committed by Android (Google) Code Review
Browse files

Merge "[flexiglass] Simplify hydrateFullWidth()" into main

parents c2484f04 e607ff23
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)