From a0188ed396e87fcbf196100c4424aa8c772587c3 Mon Sep 17 00:00:00 2001 From: Helen Qin Date: Tue, 2 Apr 2024 18:17:42 +0000 Subject: 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 --- .../src/com/android/credentialmanager/common/ui/BottomSheet.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/CredentialManager/src') 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. -- cgit v1.2.3-59-g8ed1b