[Android] Create a new application data section in the advanced settings
Nicolas Pomepuy
git at videolan.org
Mon Aug 5 09:34:58 UTC 2024
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul 29 14:50:10 2024 +0200| [9d9bc1557ea693ddee74d5655e8cda1cad995f94] | committer: Nicolas Pomepuy
Create a new application data section in the advanced settings
> https://code.videolan.org/videolan/vlc-android/commit/9d9bc1557ea693ddee74d5655e8cda1cad995f94
---
.../resources/src/main/res/values/strings.xml | 1 +
.../vlc-android/res/xml/preferences_adv.xml | 55 ++++++++++++----------
2 files changed, 30 insertions(+), 26 deletions(-)
diff --git a/application/resources/src/main/res/values/strings.xml b/application/resources/src/main/res/values/strings.xml
index e9585d72fb..b05a1ff5fb 100644
--- a/application/resources/src/main/res/values/strings.xml
+++ b/application/resources/src/main/res/values/strings.xml
@@ -1274,4 +1274,5 @@
<string name="device">Device</string>
<string name="connected_device">Connected device</string>
<string name="model">Device model</string>
+ <string name="prefs_app_data">Application data</string>
</resources>
diff --git a/application/vlc-android/res/xml/preferences_adv.xml b/application/vlc-android/res/xml/preferences_adv.xml
index fed5d1d7d3..26f58d6663 100644
--- a/application/vlc-android/res/xml/preferences_adv.xml
+++ b/application/vlc-android/res/xml/preferences_adv.xml
@@ -33,39 +33,42 @@
android:singleLine="false"
android:title="@string/http_user_agent"/>
- <Preference
- android:enabled="true"
- android:key="dump_media_db"
- android:summary="@string/dump_media_db_summary"
- android:title="@string/dump_media_db"/>
-
- <Preference
- android:enabled="true"
- android:key="dump_app_db"
- android:summary="@string/dump_media_db_summary"
- android:title="@string/dump_app_db"/>
-
- <Preference
- android:enabled="true"
- android:key="clear_media_db"
- android:summary="@string/clear_media_database_summary"
- android:title="@string/clear_media_db"/>
-
- <Preference
- android:enabled="true"
- android:key="clear_app_data"
- android:summary="@string/clear_app_data_summary"
- android:title="@string/clear_app_data"/>
- <PreferenceScreen
- android:key="clear_history"
- android:title="@string/clear_playback_history"/>
<Preference
android:enabled="true"
android:key="quit_app"
android:title="@string/quit"/>
+ <PreferenceCategory android:title="@string/prefs_app_data">
+ <Preference
+ android:enabled="true"
+ android:key="dump_media_db"
+ android:summary="@string/dump_media_db_summary"
+ android:title="@string/dump_media_db"/>
+
+ <Preference
+ android:enabled="true"
+ android:key="dump_app_db"
+ android:summary="@string/dump_media_db_summary"
+ android:title="@string/dump_app_db"/>
+
+ <Preference
+ android:enabled="true"
+ android:key="clear_media_db"
+ android:summary="@string/clear_media_database_summary"
+ android:title="@string/clear_media_db"/>
+
+ <Preference
+ android:enabled="true"
+ android:key="clear_app_data"
+ android:summary="@string/clear_app_data_summary"
+ android:title="@string/clear_app_data"/>
+
+ <PreferenceScreen
+ android:key="clear_history"
+ android:title="@string/clear_playback_history"/>
+ </PreferenceCategory>
<PreferenceCategory android:title="@string/performance_prefs_category">
<CheckBoxPreference
app:singleLineTitle="false"
More information about the Android
mailing list