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

Commit 2b7f3fca authored by Rahul Banerjee's avatar Rahul Banerjee
Browse files

Make Flexiglass Single Shade Occlude QS

Bug: 431275238
Test: Manual (build, push, expand/collapse shade, test with both single and dual shade)
Flag: EXEMPT not user facing
Change-Id: Ie0c32607a18a90c9176e9b4bddb3472e9643d8e1
parent 51186c72
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -63,7 +63,9 @@ import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.graphics.BlendMode
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.input.nestedscroll.NestedScrollConnection
@@ -612,6 +614,15 @@ fun ContentScope.NotificationScrollingStack(
                    Modifier.clickable(onClick = { onEmptySpaceClick?.invoke() })
                }
    ) {
        Spacer(
            modifier =
                Modifier.thenIf(shouldFillMaxSize) {
                    Modifier.fillMaxSize()
                }
                .drawBehind {
                    drawRect(Color.Black, blendMode = BlendMode.DstOut)
                }
        )
        Box(
            modifier =
                Modifier.graphicsLayer {