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

Commit 5c8857b3 authored by Anton Potapov's avatar Anton Potapov
Browse files

Only occupy half on a wide screen

Flag: com.android.systemui.scene_container
Bug: 352052894
Test: manual on the foldable
Change-Id: I48f95141efe64daf1d8827887e70219ba3bce325
parent 40477f9b
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@ import androidx.compose.ui.unit.IntRect
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import com.android.compose.animation.scene.SceneScope
import com.android.compose.modifiers.padding
import com.android.compose.modifiers.thenIf
import com.android.systemui.compose.modifiers.sysuiResTag
import com.android.systemui.keyguard.ui.composable.LockscreenLongPress
import com.android.systemui.keyguard.ui.composable.section.AmbientIndicationSection
@@ -94,7 +95,10 @@ constructor(
                            with(topAreaSection) {
                                DefaultClockLayout(
                                    modifier =
                                        Modifier.fillMaxWidth(0.5f).graphicsLayer {
                                        Modifier.thenIf(isShadeLayoutWide) {
                                                Modifier.fillMaxWidth(0.5f)
                                            }
                                            .graphicsLayer {
                                                translationX = unfoldTranslations.start
                                            }
                                )