fix: recent player UI regressions

This commit is contained in:
Bnyro 2024-11-19 09:40:49 +01:00
parent 24b101f3c2
commit 3262eb8365

View File

@ -400,7 +400,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
initializeTransitionLayout()
initializeOnClickActions()
initializePlayerView()
if (PlayerHelper.autoFullscreenEnabled && resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
setFullscreen()
@ -464,21 +463,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}
}
private fun initializePlayerView() {
// initialize the player view actions
binding.player.initialize(
doubleTapOverlayBinding,
playerGestureControlsViewBinding,
chaptersViewModel
)
binding.player.initPlayerOptions(
viewModel,
commonPlayerViewModel,
viewLifecycleOwner,
this
)
}
@SuppressLint("ClickableViewAccessibility")
private fun initializeTransitionLayout() {
mainActivity.binding.container.isVisible = true
@ -982,6 +966,19 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
player = playerController
}
// initialize the player view actions
binding.player.initialize(
doubleTapOverlayBinding,
playerGestureControlsViewBinding,
chaptersViewModel
)
binding.player.initPlayerOptions(
viewModel,
commonPlayerViewModel,
viewLifecycleOwner,
this
)
updatePlayerView()
if (binding.playerMotionLayout.progress != 1.0f) {