Skip to content
Snippets Groups Projects
Commit ea23a14b authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Prevent vlc options to be exported/restored

parent cde75433
No related branches found
No related tags found
1 merge request!1950Settings import export
Pipeline #497909 canceled with stage
in 1 minute and 6 seconds
......@@ -86,7 +86,7 @@ object PreferenceParser {
val changedSettings = ArrayList<Pair<String, Any>>()
allPrefs.forEach { pref ->
allSettings.forEach { setting ->
if (pref.key == setting.key) {
if (pref.key == setting.key && pref.key != "custom_libvlc_options") {
setting.value?.let {
if (!isSame(it, pref.defaultValue)) changedSettings.add(Pair(pref.key, it))
}
......@@ -272,7 +272,7 @@ object PreferenceParser {
val allPrefs = parsePreferences(activity, parseUIPrefs = true)
savedSettings?.forEach { entry ->
allPrefs.forEach {
if (it.key == entry.key) {
if (it.key == entry.key && it.key != "custom_libvlc_options") {
Log.i("PrefParser", "Restored: ${entry.key} -> ${entry.value}")
newPrefs.putSingle(entry.key, if (entry.value is Double) (entry.value as Double).toInt() else entry.value)
}
......
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