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

Commit 2b50e7da authored by Lucas Silva's avatar Lucas Silva
Browse files

Remove unnecessary spacer

Now that the hub properly handles overscroll, we remove this spacer to
let all touches go to the grid. The grid will then send any touches it
doesn't consume up to the STL for scene transitions.

Bug: 346330753
Test: verified on hub with < 6 widgets where there is no scrolling
Test: verified on hub with > 6 widgets where the grid scrolls
Flag: com.android.systemui.communal_hub
Change-Id: Ice39f71ccad9145ce3a20f542a5b494b9798428f
parent 5df98cc7
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -378,16 +378,6 @@ fun CommunalHub(
                onCancel = viewModel::onEnableWorkProfileDialogCancel
            )
        }

        // This spacer covers the edge of the LazyHorizontalGrid and prevents it from receiving
        // touches, so that the SceneTransitionLayout can intercept the touches and allow an edge
        // swipe back to the blank scene.
        Spacer(
            Modifier.height(Dimensions.GridHeight)
                .align(Alignment.CenterStart)
                .width(Dimensions.Spacing)
                .pointerInput(Unit) {}
        )
    }
}