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

Commit 05b7b2f1 authored by burakov's avatar burakov
Browse files

[Dual Shade] Disable nested drags in all overlay shades.

Fix: 391146814
Test: Manually by scrolling the shade fully, and ensuring it doesn't
 expand/collapse the shade unintentionally.
Test: Unit tests still pass.
Flag: com.android.systemui.scene_container
Change-Id: Idd8285a30a41a667103e07f9c88909e62414c498
parent a708b619
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -107,7 +107,10 @@ private fun ContentScope.Panel(
    header: (@Composable () -> Unit)?,
    content: @Composable () -> Unit,
) {
    Box(modifier = modifier.clip(OverlayShade.Shapes.RoundedCornerPanel)) {
    Box(
        modifier =
            modifier.clip(OverlayShade.Shapes.RoundedCornerPanel).disableSwipesWhenScrolling()
    ) {
        Spacer(
            modifier =
                Modifier.element(OverlayShade.Elements.PanelBackground)