mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix: restore fullscreen after PiP
This commit is contained in:
parent
c6350d36ed
commit
a593da17c1
@ -1492,11 +1492,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
binding.player.hideController()
|
||||
binding.player.useController = false
|
||||
|
||||
if (viewModel.isMiniPlayerVisible.value == true) {
|
||||
binding.playerMotionLayout.transitionToStart()
|
||||
viewModel.isMiniPlayerVisible.value = false
|
||||
}
|
||||
|
||||
updateCurrentSubtitle(null)
|
||||
|
||||
openOrCloseFullscreenDialog(true)
|
||||
@ -1510,11 +1505,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
|
||||
updateCurrentSubtitle(currentSubtitle)
|
||||
|
||||
binding.optionsLL.post {
|
||||
binding.optionsLL.requestLayout()
|
||||
// unset fullscreen if it's not been enabled before the start of PiP
|
||||
if (viewModel.isFullscreen.value != true) {
|
||||
openOrCloseFullscreenDialog(false)
|
||||
}
|
||||
|
||||
openOrCloseFullscreenDialog(false)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -181,7 +181,7 @@ class OnlinePlayerView(
|
||||
super.hideController()
|
||||
|
||||
if (playerViewModel?.isFullscreen?.value == true) {
|
||||
toggleSystemBars(true)
|
||||
toggleSystemBars(false)
|
||||
}
|
||||
updateTopBarMargin()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user