Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import android.os.Build
import android.util.Rational
import androidx.activity.ComponentActivity
import androidx.compose.foundation.focusable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
Expand All @@ -46,6 +44,7 @@ import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toAndroidRectF
Expand Down Expand Up @@ -127,8 +126,13 @@ private fun VideoPlayerScreen(
Scaffold(
topBar = { VideoPlayerTopAppBar(onCloseButtonClicked) },
) { innerPadding ->
Column(modifier = modifier.fillMaxSize(), verticalArrangement = Arrangement.Center) {
VideoPlayer(player, shouldEnterPipMode, Modifier.padding(innerPadding))
Box(
modifier = modifier
.fillMaxSize()
.padding(innerPadding),
contentAlignment = Alignment.Center,
) {
VideoPlayer(player, shouldEnterPipMode)
}
}
}
Expand Down