Merge pull request #2583 from Bnyro/master

Fix that double tap to seek is shown as false by default
This commit is contained in:
Bnyro 2023-01-04 18:54:48 +01:00 committed by GitHub
commit af5ab94b90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -28,10 +28,7 @@ class PlayerSettings : BasePreferenceFragment() {
findPreference<SwitchPreferenceCompat>(PreferenceKeys.AUTO_FULLSCREEN) findPreference<SwitchPreferenceCompat>(PreferenceKeys.AUTO_FULLSCREEN)
// only show the player orientation option if auto fullscreen is disabled // only show the player orientation option if auto fullscreen is disabled
playerOrientation?.isEnabled = !PreferenceHelper.getBoolean( playerOrientation?.isEnabled = autoRotateToFullscreen?.isChecked != true
PreferenceKeys.AUTO_FULLSCREEN,
false
)
autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue -> autoRotateToFullscreen?.setOnPreferenceChangeListener { _, newValue ->
playerOrientation?.isEnabled = newValue != true playerOrientation?.isEnabled = newValue != true

View File

@ -26,7 +26,7 @@
app:title="@string/skip_buttons" /> app:title="@string/skip_buttons" />
<SwitchPreferenceCompat <SwitchPreferenceCompat
android:defaultValue="false" android:defaultValue="true"
android:icon="@drawable/ic_skip" android:icon="@drawable/ic_skip"
android:summary="@string/double_tap_seek_summary" android:summary="@string/double_tap_seek_summary"
app:key="double_tap_seek" app:key="double_tap_seek"