File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
kotlin/io/homeassistant/companion/android/util/compose Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Row
8
8
import androidx.compose.foundation.layout.fillMaxWidth
9
9
import androidx.compose.foundation.layout.padding
10
10
import androidx.compose.foundation.layout.size
11
+ import androidx.compose.foundation.layout.windowInsetsPadding
11
12
import androidx.compose.foundation.shape.RoundedCornerShape
12
13
import androidx.compose.material.MaterialTheme
13
14
import androidx.compose.material.Surface
@@ -21,6 +22,7 @@ import androidx.compose.ui.text.style.TextAlign
21
22
import androidx.compose.ui.unit.dp
22
23
import io.homeassistant.companion.android.R
23
24
import io.homeassistant.companion.android.common.R as commonR
25
+ import io.homeassistant.companion.android.util.safeBottomWindowInsets
24
26
25
27
/* *
26
28
* A Material 3-style modal bottom sheet with an optional handle, for use with a
@@ -36,7 +38,9 @@ fun ModalBottomSheet(
36
38
Surface (
37
39
shape = RoundedCornerShape (topStart = sheetCornerRadius, topEnd = sheetCornerRadius)
38
40
) {
39
- Column {
41
+ Column (
42
+ modifier = Modifier .windowInsetsPadding(safeBottomWindowInsets())
43
+ ) {
40
44
if (showHandle) {
41
45
Row (
42
46
modifier = Modifier
Original file line number Diff line number Diff line change 16
16
</style >
17
17
18
18
<style name =" ThemeOverlay.HomeAssistant.BottomSheetDialog" parent =" ThemeOverlay.HomeAssistant.BottomSheetDialog.Base" >
19
- <item name =" android:navigationBarColor" >@color/colorSurface </item >
19
+ <item name =" android:navigationBarColor" >@android: color/transparent </item >
20
20
<item name =" android:windowLightNavigationBar" >@bool/isLightMode</item >
21
+ <item name =" enableEdgeToEdge" >true</item >
22
+ <item name =" paddingBottomSystemWindowInsets" >false</item >
23
+ <item name =" paddingLeftSystemWindowInsets" >false</item >
24
+ <item name =" paddingRightSystemWindowInsets" >false</item >
21
25
</style >
22
26
</resources >
You can’t perform that action at this time.
0 commit comments