Skip to content

Commit

Permalink
Add navigationBar insets
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Jul 30, 2024
1 parent 6f600d3 commit 71403e8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
Expand Down Expand Up @@ -91,6 +92,7 @@ class SimplePlayerActivity : ComponentActivity(), ServiceConnection {
Surface(
modifier = Modifier
.fillMaxSize()
.navigationBarsPadding()
.statusBarsPadding(),
color = MaterialTheme.colorScheme.background,
) {
Expand Down

0 comments on commit 71403e8

Please sign in to comment.