mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +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.hideController()
|
||||||
binding.player.useController = false
|
binding.player.useController = false
|
||||||
|
|
||||||
if (viewModel.isMiniPlayerVisible.value == true) {
|
|
||||||
binding.playerMotionLayout.transitionToStart()
|
|
||||||
viewModel.isMiniPlayerVisible.value = false
|
|
||||||
}
|
|
||||||
|
|
||||||
updateCurrentSubtitle(null)
|
updateCurrentSubtitle(null)
|
||||||
|
|
||||||
openOrCloseFullscreenDialog(true)
|
openOrCloseFullscreenDialog(true)
|
||||||
@ -1510,11 +1505,10 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
|
|
||||||
updateCurrentSubtitle(currentSubtitle)
|
updateCurrentSubtitle(currentSubtitle)
|
||||||
|
|
||||||
binding.optionsLL.post {
|
// unset fullscreen if it's not been enabled before the start of PiP
|
||||||
binding.optionsLL.requestLayout()
|
if (viewModel.isFullscreen.value != true) {
|
||||||
|
openOrCloseFullscreenDialog(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
openOrCloseFullscreenDialog(false)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ class OnlinePlayerView(
|
|||||||
super.hideController()
|
super.hideController()
|
||||||
|
|
||||||
if (playerViewModel?.isFullscreen?.value == true) {
|
if (playerViewModel?.isFullscreen?.value == true) {
|
||||||
toggleSystemBars(true)
|
toggleSystemBars(false)
|
||||||
}
|
}
|
||||||
updateTopBarMargin()
|
updateTopBarMargin()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user