Adding Default categorie in global update pref (#745)

This commit is contained in:
nzoba 2021-04-27 06:06:19 +02:00 committed by GitHub
parent 8826e7984f
commit d72189b8e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,10 +143,14 @@ class SettingsLibraryController : SettingsController() {
multiSelectListPreferenceMat(activity) {
key = Keys.libraryUpdateCategories
titleRes = R.string.categories_to_include_in_global_update
entries = dbCategories.map { it.name }
entryValues = dbCategories.map { it.id.toString() }
val categories = listOf(Category.createDefault(context)) + dbCategories
entries = categories.map { it.name }
entryValues = categories.map { it.id.toString() }
allSelectionRes = R.string.all
}
intListPreference(activity) {
key = Keys.updateOnRefresh
titleRes = R.string.categories_on_manual