From dd37e0edb77f00a9349b5aff322e7074aff5a7fc Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 14 Jul 2022 16:04:03 +0200 Subject: [PATCH] disable by default --- .../main/java/com/github/libretube/fragments/PlayerFragment.kt | 2 ++ .../java/com/github/libretube/preferences/PlayerSettings.kt | 2 +- app/src/main/res/xml/player_settings.xml | 3 +-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index d24587ed9..bde390d9b 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -297,6 +297,8 @@ class PlayerFragment : Fragment() { } // FullScreen button trigger + // hide fullscreen button if auto rotation enabled + playerBinding.fullscreen.visibility = if (autoRotationEnabled) View.GONE else View.VISIBLE playerBinding.fullscreen.setOnClickListener { // hide player controller exoPlayerView.hideController() diff --git a/app/src/main/java/com/github/libretube/preferences/PlayerSettings.kt b/app/src/main/java/com/github/libretube/preferences/PlayerSettings.kt index e3d014055..b3428f4f7 100644 --- a/app/src/main/java/com/github/libretube/preferences/PlayerSettings.kt +++ b/app/src/main/java/com/github/libretube/preferences/PlayerSettings.kt @@ -23,7 +23,7 @@ class PlayerSettings : PreferenceFragmentCompat() { playerOrientation?.isEnabled != PreferenceHelper.getBoolean( requireContext(), "auto_fullscreen", - true + false ) autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue -> diff --git a/app/src/main/res/xml/player_settings.xml b/app/src/main/res/xml/player_settings.xml index da3e50bf4..10563cdc6 100644 --- a/app/src/main/res/xml/player_settings.xml +++ b/app/src/main/res/xml/player_settings.xml @@ -74,12 +74,11 @@