disable by default

This commit is contained in:
Bnyro 2022-07-14 16:04:03 +02:00
parent b5c4ec9e92
commit dd37e0edb7
3 changed files with 4 additions and 3 deletions

View File

@ -297,6 +297,8 @@ class PlayerFragment : Fragment() {
} }
// FullScreen button trigger // FullScreen button trigger
// hide fullscreen button if auto rotation enabled
playerBinding.fullscreen.visibility = if (autoRotationEnabled) View.GONE else View.VISIBLE
playerBinding.fullscreen.setOnClickListener { playerBinding.fullscreen.setOnClickListener {
// hide player controller // hide player controller
exoPlayerView.hideController() exoPlayerView.hideController()

View File

@ -23,7 +23,7 @@ class PlayerSettings : PreferenceFragmentCompat() {
playerOrientation?.isEnabled != PreferenceHelper.getBoolean( playerOrientation?.isEnabled != PreferenceHelper.getBoolean(
requireContext(), requireContext(),
"auto_fullscreen", "auto_fullscreen",
true false
) )
autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue -> autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue ->

View File

@ -74,12 +74,11 @@
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:icon="@drawable/ic_rotating_circle" android:icon="@drawable/ic_rotating_circle"
android:summary="@string/autoRotatePlayer_summary" android:summary="@string/autoRotatePlayer_summary"
app:defaultValue="true" app:defaultValue="false"
app:key="auto_fullscreen" app:key="auto_fullscreen"
app:title="@string/autoRotatePlayer" /> app:title="@string/autoRotatePlayer" />
<ListPreference <ListPreference
android:enabled="false"
android:icon="@drawable/ic_flip" android:icon="@drawable/ic_flip"
app:defaultValue="ratio" app:defaultValue="ratio"
app:entries="@array/fullscreenOrientation" app:entries="@array/fullscreenOrientation"