mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Fix unresponsive screen when closing through PiP
This commit is contained in:
parent
a3e0c40a0f
commit
34c0d8d72e
@ -1437,11 +1437,11 @@ class PlayerFragment : BaseFragment(), OnlinePlayerOptions {
|
||||
viewModel.isFullscreen.value = false
|
||||
|
||||
updateCaptionsLanguage(null)
|
||||
} else if (lifecycle.currentState == Lifecycle.State.CREATED) {
|
||||
} else {
|
||||
// close button got clicked in PiP mode
|
||||
// pause the video and keep the app alive
|
||||
exoPlayer.pause()
|
||||
} else {
|
||||
if (lifecycle.currentState == Lifecycle.State.CREATED) exoPlayer.pause()
|
||||
|
||||
// enable exoPlayer controls again
|
||||
exoPlayerView.useController = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user