mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20: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()
|
initializeTransitionLayout()
|
||||||
initializeOnClickActions()
|
initializeOnClickActions()
|
||||||
initializePlayerView()
|
|
||||||
|
|
||||||
if (PlayerHelper.autoFullscreenEnabled && resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
if (PlayerHelper.autoFullscreenEnabled && resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
setFullscreen()
|
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")
|
@SuppressLint("ClickableViewAccessibility")
|
||||||
private fun initializeTransitionLayout() {
|
private fun initializeTransitionLayout() {
|
||||||
mainActivity.binding.container.isVisible = true
|
mainActivity.binding.container.isVisible = true
|
||||||
@ -982,6 +966,19 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
player = playerController
|
player = playerController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// initialize the player view actions
|
||||||
|
binding.player.initialize(
|
||||||
|
doubleTapOverlayBinding,
|
||||||
|
playerGestureControlsViewBinding,
|
||||||
|
chaptersViewModel
|
||||||
|
)
|
||||||
|
binding.player.initPlayerOptions(
|
||||||
|
viewModel,
|
||||||
|
commonPlayerViewModel,
|
||||||
|
viewLifecycleOwner,
|
||||||
|
this
|
||||||
|
)
|
||||||
|
|
||||||
updatePlayerView()
|
updatePlayerView()
|
||||||
|
|
||||||
if (binding.playerMotionLayout.progress != 1.0f) {
|
if (binding.playerMotionLayout.progress != 1.0f) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user