From 228be1a0756ab7bed02533bbed15afff910aab19 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Mon, 30 Oct 2023 12:17:05 +0100 Subject: [PATCH] fix: fullscreen video doesn't use landscape --- .../java/com/github/libretube/ui/fragments/PlayerFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8aad90ac5..2a82b808f 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 @@ -520,7 +520,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions { } private fun updateFullscreenOrientation() { - if (PlayerHelper.autoFullscreenEnabled || this::streams.isInitialized) return + if (PlayerHelper.autoFullscreenEnabled || !this::streams.isInitialized) return val height = streams.videoStreams.firstOrNull()?.height ?: exoPlayer.videoSize.height val width = streams.videoStreams.firstOrNull()?.width ?: exoPlayer.videoSize.width