Merge pull request #4299 from Bnyro/master

fix: regression from fixing auto rotation for auto play
This commit is contained in:
Bnyro 2023-07-24 15:47:41 +02:00 committed by GitHub
commit fc54f4824f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,7 +541,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
playerBinding.exoTitle.visibility = View.VISIBLE playerBinding.exoTitle.visibility = View.VISIBLE
updateFullscreenOrientation() updateFullscreenOrientation()
viewModel.isFullscreen.value = true viewModel.isFullscreen.value = true
} }
@ -754,7 +753,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
prepareExoPlayerView() prepareExoPlayerView()
initializePlayerView() initializePlayerView()
setupSeekbarPreview() setupSeekbarPreview()
updateFullscreenOrientation()
if (viewModel.isFullscreen.value == true) updateFullscreenOrientation()
exoPlayer.prepare() exoPlayer.prepare()
if (PreferenceHelper.getBoolean(PreferenceKeys.PLAY_AUTOMATICALLY, true)) { if (PreferenceHelper.getBoolean(PreferenceKeys.PLAY_AUTOMATICALLY, true)) {