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

Commit 0c95de29 authored by brycelee's avatar brycelee
Browse files

Allow horizontal swipe when glanceable hub is empty.

Fixes: 430636785
Test: MANUAL verified behavior
Flag: EXEMPT bugfix
Change-Id: I90713a06c5031869f24cfec9abecb7ebfaac45db
parent 859c6c2c
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 = {