Skip to content

Commit

Permalink
[Jetcaster] Use contentPadding on the content of the PlayerContentWit…
Browse files Browse the repository at this point in the history
…hBackground (#1375)
  • Loading branch information
mlykotom committed Apr 29, 2024
2 parents 0510149 + 344ffa3 commit 21a59c1
Showing 1 changed file with 7 additions and 3 deletions.
Expand Up @@ -25,6 +25,7 @@ import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
Expand Down Expand Up @@ -186,7 +187,7 @@ private fun PlayerScreen(
onAddToQueue()
},
playerControlActions = playerControlActions,
modifier = Modifier.padding(contentPadding)
contentPadding = contentPadding,
)
} else {
FullScreenLoading()
Expand Down Expand Up @@ -214,12 +215,15 @@ fun PlayerContentWithBackground(
onBackPress: () -> Unit,
onAddToQueue: () -> Unit,
playerControlActions: PlayerControlActions,
modifier: Modifier = Modifier
modifier: Modifier = Modifier,
contentPadding: PaddingValues = PaddingValues(0.dp)
) {
Box(modifier = modifier, contentAlignment = Alignment.Center) {
PlayerBackground(
episode = uiState.episodePlayerState.currentEpisode,
modifier = Modifier.fillMaxSize()
modifier = Modifier
.fillMaxSize()
.padding(contentPadding)
)
PlayerContent(
uiState = uiState,
Expand Down

0 comments on commit 21a59c1

Please sign in to comment.