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

Commit 81c3df1b authored by Bryce Lee's avatar Bryce Lee Committed by Android (Google) Code Review
Browse files

Merge "Allow horizontal swipe when glanceable hub is empty." into main

parents ddb69797 0c95de29
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -84,6 +84,7 @@ constructor(
                viewModel.showBackgroundForEditModeTransition.collectAsStateWithLifecycle(
                    initialValue = false
                )
            val empty by viewModel.isEmptyState.collectAsStateWithLifecycle(initialValue = false)

            // The animated background here matches the color scheme of the edit mode activity and
            // facilitates the transition to and from edit mode.
@@ -97,7 +98,9 @@ constructor(

            Layout(
                modifier =
                    Modifier.fillMaxSize().thenIf(communalSettingsInteractor.isV2FlagEnabled()) {
                    Modifier.fillMaxSize().thenIf(
                        communalSettingsInteractor.isV2FlagEnabled() && !empty
                    ) {
                        Modifier.consumeHorizontalDragGestures(gridRegion)
                    },
                content = {