Skip to content

Commit b57e782

Browse files
committed
Prevent drawing behind system bars in WidgetConfigureScreen
1 parent 13a794f commit b57e782

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

app/src/main/kotlin/com/simplemobiletools/flashlight/screens/BrightDisplayScreen.kt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ package com.simplemobiletools.flashlight.screens
22

33
import androidx.compose.foundation.background
44
import androidx.compose.foundation.border
5-
import androidx.compose.foundation.layout.Box
6-
import androidx.compose.foundation.layout.fillMaxSize
7-
import androidx.compose.foundation.layout.navigationBarsPadding
8-
import androidx.compose.foundation.layout.wrapContentSize
5+
import androidx.compose.foundation.layout.*
96
import androidx.compose.material3.Text
107
import androidx.compose.material3.TextButton
118
import androidx.compose.runtime.Composable
@@ -33,6 +30,7 @@ internal fun BrightDisplayScreen(
3330
modifier = Modifier
3431
.fillMaxSize()
3532
.background(Color(backgroundColor))
33+
.safeDrawingPadding()
3634
) {
3735
TextButton(
3836
modifier = Modifier
@@ -54,7 +52,6 @@ internal fun BrightDisplayScreen(
5452
Box(
5553
modifier = Modifier
5654
.align(Alignment.BottomEnd)
57-
.navigationBarsPadding()
5855
) {
5956
sleepTimer()
6057
}

app/src/main/kotlin/com/simplemobiletools/flashlight/screens/WidgetConfigureScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal fun WidgetConfigureScreen(
3737
onSavePressed: () -> Unit
3838
) {
3939
Column(
40-
modifier = Modifier.fillMaxSize(),
40+
modifier = Modifier.fillMaxSize().safeDrawingPadding(),
4141
verticalArrangement = Arrangement.Bottom,
4242
) {
4343
Box(

0 commit comments

Comments
 (0)