From d72189b8e419b087e1b958a357a28ceceee61ad0 Mon Sep 17 00:00:00 2001 From: nzoba <55888232+nzoba@users.noreply.github.com> Date: Tue, 27 Apr 2021 06:06:19 +0200 Subject: [PATCH] Adding Default categorie in global update pref (#745) --- .../tachiyomi/ui/setting/SettingsLibraryController.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt index 85ac0fd42d..53f0d1a680 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt @@ -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