mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 00:10:32 +05:30
fix: recent player UI regressions
This commit is contained in:
parent
24b101f3c2
commit
3262eb8365
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user