Skip to content

Commit

Permalink
Fix white screen when selecting a settings
Browse files Browse the repository at this point in the history
  • Loading branch information
StaehliJ committed Aug 14, 2023
1 parent 89cea56 commit 6a83f70
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
package ch.srgssr.pillarbox.demo.ui.player

import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.SideEffect
Expand Down Expand Up @@ -35,7 +36,7 @@ import com.google.accompanist.systemuicontroller.rememberSystemUiController
* @param pictureInPictureClick he picture in picture button action. If null no button.
* @param displayPlaylist If it displays playlist ui or not.
*/
@OptIn(ExperimentalMaterialNavigationApi::class)
@OptIn(ExperimentalMaterialNavigationApi::class, ExperimentalMaterialApi::class)
@Composable
fun DemoPlayer(
player: Player,
Expand All @@ -50,9 +51,6 @@ fun DemoPlayer(
modifier = modifier,
bottomSheetNavigator = bottomSheetNavigator
) {
if (!bottomSheetNavigator.navigatorSheetState.isVisible) {
navController.popBackStack()
}
NavHost(navController, startDestination = "player") {
composable(route = "player") {
PlayerContent(
Expand Down

0 comments on commit 6a83f70

Please sign in to comment.