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:
parent
b5c4ec9e92
commit
dd37e0edb7
app/src/main
java/com/github/libretube
res/xml
@ -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()
|
||||
|
@ -23,7 +23,7 @@ class PlayerSettings : PreferenceFragmentCompat() {
|
||||
playerOrientation?.isEnabled != PreferenceHelper.getBoolean(
|
||||
requireContext(),
|
||||
"auto_fullscreen",
|
||||
true
|
||||
false
|
||||
)
|
||||
|
||||
autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue ->
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user