File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
android/src/main/kotlin/project/pipepipe/app/ui/screens/playlistdetail Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import com.google.common.util.concurrent.MoreExecutors
3838import dev.icerock.moko.resources.compose.stringResource
3939import dev.icerock.moko.resources.desc.desc
4040import kotlinx.coroutines.GlobalScope
41+ import kotlinx.coroutines.delay
4142import kotlinx.coroutines.launch
4243import project.pipepipe.app.MR
4344import project.pipepipe.app.PlaybackMode
@@ -193,7 +194,10 @@ fun PlaylistDetailScreen(
193194 controller.prepare()
194195 controller.play()
195196 if (SharedContext .sharedVideoDetailViewModel.uiState.value.pageState == VideoDetailPageState .HIDDEN ) {
196- SharedContext .sharedVideoDetailViewModel.showAsBottomPlayer()
197+ GlobalScope .launch {
198+ delay(500 )
199+ SharedContext .sharedVideoDetailViewModel.showAsBottomPlayer()
200+ }
197201 }
198202 }
199203 }
You can’t perform that action at this time.
0 commit comments