Skip to content

Commit a989ef9

Browse files
authored
Merge pull request #944 from mjaakko/fix_tablet_settings_padding
Fix content being drawn under system bars in the settings
2 parents 16eb258 + 92fa3ca commit a989ef9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/src/main/java/xyz/malkki/neostumbler/ui/screens/SettingsScreen.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ import androidx.compose.foundation.layout.BoxWithConstraints
99
import androidx.compose.foundation.layout.Column
1010
import androidx.compose.foundation.layout.Row
1111
import androidx.compose.foundation.layout.Spacer
12+
import androidx.compose.foundation.layout.WindowInsets
1213
import androidx.compose.foundation.layout.fillMaxHeight
1314
import androidx.compose.foundation.layout.fillMaxWidth
1415
import androidx.compose.foundation.layout.height
1516
import androidx.compose.foundation.layout.padding
17+
import androidx.compose.foundation.layout.safeContent
1618
import androidx.compose.foundation.layout.width
19+
import androidx.compose.foundation.layout.windowInsetsPadding
1720
import androidx.compose.foundation.rememberScrollState
1821
import androidx.compose.foundation.selection.selectable
1922
import androidx.compose.foundation.selection.selectableGroup
@@ -181,7 +184,8 @@ fun SettingsScreen() {
181184

182185
Row(
183186
modifier =
184-
Modifier.padding(horizontal = 24.dp, vertical = 16.dp).handleDisplayCutouts(),
187+
Modifier.padding(horizontal = 24.dp, vertical = 16.dp)
188+
.windowInsetsPadding(WindowInsets.safeContent),
185189
horizontalArrangement = Arrangement.spacedBy(16.dp),
186190
) {
187191
Column(modifier = Modifier.width(250.dp).fillMaxHeight()) {

0 commit comments

Comments
 (0)