From a830a26f9b501da40daca75ea2d26c88f62bffc6 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 24 Jul 2023 15:48:08 +0200 Subject: [PATCH] fix: regression from fixing auto rotation for auto play --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 9d253fb6e..5fc363cb0 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -541,7 +541,6 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { playerBinding.exoTitle.visibility = View.VISIBLE updateFullscreenOrientation() - viewModel.isFullscreen.value = true } @@ -754,7 +753,8 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { prepareExoPlayerView() initializePlayerView() setupSeekbarPreview() - updateFullscreenOrientation() + + if (viewModel.isFullscreen.value == true) updateFullscreenOrientation() exoPlayer.prepare() if (PreferenceHelper.getBoolean(PreferenceKeys.PLAY_AUTOMATICALLY, true)) {