Skip to content
Snippets Groups Projects
Commit f4cd0b1f authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Remove unused performance preference

parent 343d7e37
No related branches found
No related tags found
1 merge request!1436Remove unused performance preference
Pipeline #237833 passed with stage
in 21 minutes and 28 seconds
<?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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment