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

Commit a0188ed3 authored by Helen Qin's avatar Helen Qin
Browse files

Don't inset status bar.

This ensures the scrim applies to the whole screen including the status
bar area.

Bug: 332558650
Test: see screenshots in bug
Change-Id: I1447b7bc31401f2fb1d00d6e16ddc095766c5302
parent 4b030612
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -20,7 +20,9 @@ import android.credentials.flags.Flags
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material3.ExperimentalMaterial3Api
@@ -69,6 +71,7 @@ fun ModalBottomSheet(
                },
                scrimColor = MaterialTheme.colorScheme.scrim.copy(alpha = .32f),
                shape = EntryShape.TopRoundedCorner,
                windowInsets = WindowInsets.navigationBars,
                dragHandle = null,
                // Never take over the full screen. We always want to leave some top scrim space
                // for exiting and viewing the underlying app to help a user gain context.