mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
Merge pull request #5311 from Bnyro/master
fix: home tab content not included in preferences backup
This commit is contained in:
commit
be29998cbf
@ -100,7 +100,13 @@ object BackupHelper {
|
||||
}
|
||||
}
|
||||
|
||||
is String -> putString(key, value)
|
||||
is String -> {
|
||||
if (key == PreferenceKeys.HOME_TAB_CONTENT) {
|
||||
putStringSet(key, value.split(",").toSet())
|
||||
} else {
|
||||
putString(key, value)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,6 +65,7 @@ class BackupDialog : DialogFragment() {
|
||||
is Number -> JsonPrimitive(value)
|
||||
is Boolean -> JsonPrimitive(value)
|
||||
is String -> JsonPrimitive(value)
|
||||
is Set<*> -> JsonPrimitive(value.joinToString(","))
|
||||
else -> JsonNull
|
||||
}
|
||||
PreferenceItem(key, jsonValue)
|
||||
|
Loading…
x
Reference in New Issue
Block a user