[Android] Add audio control settings for bookmarks and chapter buttons
Nicolas Pomepuy
git at videolan.org
Fri Feb 28 12:32:39 UTC 2025
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Feb 18 13:41:47 2025 +0100| [3a52faa19ab93d4665f5de2aedef58bc70a09c81] | committer: Duncan McNamara
Add audio control settings for bookmarks and chapter buttons
> https://code.videolan.org/videolan/vlc-android/commit/3a52faa19ab93d4665f5de2aedef58bc70a09c81
---
application/resources/src/main/res/values/strings.xml | 4 ++++
.../tools/src/main/java/org/videolan/tools/Settings.kt | 2 ++
.../vlc-android/res/xml/preferences_audio_controls.xml | 12 ++++++++++++
3 files changed, 18 insertions(+)
diff --git a/application/resources/src/main/res/values/strings.xml b/application/resources/src/main/res/values/strings.xml
index 9d368f4af3..8042cc83ca 100644
--- a/application/resources/src/main/res/values/strings.xml
+++ b/application/resources/src/main/res/values/strings.xml
@@ -412,6 +412,10 @@
<string name="fastplay_speed_title">Fastplay speed</string>
<string name="fastplay_title">Playing at %sx</string>
<string name="fastplay_subtitle">Release to stop</string>
+ <string name="show_bookmark_buttons">Show bookmark buttons</string>
+ <string name="show_bookmark_buttons_summary">Show buttons to navigate between bookmarks</string>
+ <string name="show_chapter_buttons">Show chapter buttons</string>
+ <string name="show_chapter_buttons_summary">Show buttons to navigate between chapters</string>
<string name="subtitles_prefs_category">Subtitles</string>
<string name="subtitles_size_title">Subtitles Size</string>
diff --git a/application/tools/src/main/java/org/videolan/tools/Settings.kt b/application/tools/src/main/java/org/videolan/tools/Settings.kt
index 21d0863cca..9464413581 100644
--- a/application/tools/src/main/java/org/videolan/tools/Settings.kt
+++ b/application/tools/src/main/java/org/videolan/tools/Settings.kt
@@ -118,6 +118,8 @@ const val KEY_AUDIO_JUMP_DELAY = "audio_jump_delay"
const val KEY_AUDIO_LONG_JUMP_DELAY = "audio_long_jump_delay"
const val KEY_AUDIO_FORCE_SHUFFLE = "audio_force_shuffle"
const val KEY_AUDIO_SHOW_TRACK_NUMBERS = "audio_show_track_numbers"
+const val KEY_AUDIO_SHOW_CHAPTER_BUTTONS = "audio_show_chapter_buttons"
+const val KEY_AUDIO_SHOW_BOOMARK_BUTTONS = "audio_show_bookmark_buttons"
// AudioPlayer
diff --git a/application/vlc-android/res/xml/preferences_audio_controls.xml b/application/vlc-android/res/xml/preferences_audio_controls.xml
index 4b559ca060..9f452a3c77 100644
--- a/application/vlc-android/res/xml/preferences_audio_controls.xml
+++ b/application/vlc-android/res/xml/preferences_audio_controls.xml
@@ -45,6 +45,18 @@
android:defaultValue="false"
android:key="audio_show_track_numbers"
android:title="@string/albums_show_track_numbers"/>
+ <CheckBoxPreference
+ app:singleLineTitle="false"
+ android:defaultValue="true"
+ android:key="audio_show_chapter_buttons"
+ android:title="@string/show_chapter_buttons"
+ android:summary="@string/show_chapter_buttons_summary"/>
+ <CheckBoxPreference
+ app:singleLineTitle="false"
+ android:defaultValue="false"
+ android:key="audio_show_bookmark_buttons"
+ android:title="@string/show_bookmark_buttons"
+ android:summary="@string/show_bookmark_buttons_summary"/>
</PreferenceCategory>
More information about the Android
mailing list