[Android] Remove unused performance preference

Nicolas Pomepuy git at videolan.org
Fri Jul 1 14:41:17 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jun 30 06:50:42 2022 +0200| [f4cd0b1fc16ddf9560c5ea9205b58c864adc2ef9] | committer: Duncan McNamara

Remove unused performance preference

> https://code.videolan.org/videolan/vlc-android/commit/f4cd0b1fc16ddf9560c5ea9205b58c864adc2ef9
---

 .../vlc-android/res/xml/preferences_perf.xml       | 26 ----------------------
 .../vlc/gui/preferences/search/PreferenceParser.kt |  2 +-
 2 files changed, 1 insertion(+), 27 deletions(-)

diff --git a/application/vlc-android/res/xml/preferences_perf.xml b/application/vlc-android/res/xml/preferences_perf.xml
deleted file mode 100644
index e681ed3aa..000000000
--- a/application/vlc-android/res/xml/preferences_perf.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-
-<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
-                                      xmlns:app="http://schemas.android.com/apk/res-auto"
-                                      android:title="@string/performance_prefs_category">
-    <ListPreference
-            android:defaultValue="-1"
-            android:entries="@array/deblocking_list"
-            android:entryValues="@array/deblocking_values"
-            android:key="deblocking"
-            android:summary="@string/deblocking_summary"
-            android:title="@string/deblocking"/>
-
-    <CheckBoxPreference
-            app:singleLineTitle="false"
-            android:defaultValue="false"
-            android:key="enable_frame_skip"
-            android:summary="@string/enable_frame_skip_summary"
-            android:title="@string/enable_frame_skip"/>
-    <CheckBoxPreference
-            app:singleLineTitle="false"
-            android:defaultValue="@bool/time_stretching_default"
-            android:key="enable_time_stretching_audio"
-            android:summary="@string/enable_time_stretching_audio_summary"
-            android:title="@string/enable_time_stretching_audio"/>
-</androidx.preference.PreferenceScreen>
\ No newline at end of file
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/preferences/search/PreferenceParser.kt b/application/vlc-android/src/org/videolan/vlc/gui/preferences/search/PreferenceParser.kt
index 32b666bb7..825e484a1 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/preferences/search/PreferenceParser.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/preferences/search/PreferenceParser.kt
@@ -45,7 +45,7 @@ object PreferenceParser {
      */
     fun parsePreferences(context: Context): ArrayList<PreferenceItem> {
         val result = ArrayList<PreferenceItem>()
-        arrayOf(R.xml.preferences, R.xml.preferences_adv, R.xml.preferences_audio, R.xml.preferences_casting, R.xml.preferences_perf, R.xml.preferences_subtitles, R.xml.preferences_ui, R.xml.preferences_video).forEach {
+        arrayOf(R.xml.preferences, R.xml.preferences_adv, R.xml.preferences_audio, R.xml.preferences_casting, R.xml.preferences_subtitles, R.xml.preferences_ui, R.xml.preferences_video).forEach {
             result.addAll(parsePreferences(context, it))
         }
         return result



More information about the Android mailing list