diff options
author | 2024-04-02 18:17:42 +0000 | |
---|---|---|
committer | 2024-04-02 18:31:09 +0000 | |
commit | a0188ed396e87fcbf196100c4424aa8c772587c3 (patch) | |
tree | eb8874516242e0d3d5db6d289012944491f231b7 /packages/CredentialManager/src | |
parent | 4b030612a876042201aab0a49d973c133078155c (diff) |
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
Diffstat (limited to 'packages/CredentialManager/src')
-rw-r--r-- | packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt index e43b09ede1cb..f65a1b750e5e 100644 --- a/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt +++ b/packages/CredentialManager/src/com/android/credentialmanager/common/ui/BottomSheet.kt @@ -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. |