1
0
mirror of https://github.com/libre-tube/LibreTube.git synced 2024-12-15 06:40:30 +05:30

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
app/src/main
java/com/github/libretube
res/xml

View File

@ -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()

View File

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

View File

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