Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {

initializeTransitionLayout()
initializeOnClickActions()
initializePlayerView()

if (PlayerHelper.autoFullscreenEnabled && resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE) {
setFullscreen()
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Loading