mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +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 Number -> JsonPrimitive(value)
|
||||||
is Boolean -> JsonPrimitive(value)
|
is Boolean -> JsonPrimitive(value)
|
||||||
is String -> JsonPrimitive(value)
|
is String -> JsonPrimitive(value)
|
||||||
|
is Set<*> -> JsonPrimitive(value.joinToString(","))
|
||||||
else -> JsonNull
|
else -> JsonNull
|
||||||
}
|
}
|
||||||
PreferenceItem(key, jsonValue)
|
PreferenceItem(key, jsonValue)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user