mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
disable by default
This commit is contained in:
parent
b5c4ec9e92
commit
dd37e0edb7
@ -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()
|
||||||
|
@ -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 ->
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user