diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt index 3ea103f20..fb08a6e8c 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt @@ -50,9 +50,11 @@ fun Manga.removeCovers(coverCache: CoverCache = Injekt.get()): Int { return coverCache.deleteFromCache(this, true) } -fun DomainManga.shouldDownloadNewChapters(categories: List, prefs: PreferencesHelper): Boolean { +fun DomainManga.shouldDownloadNewChapters(dbCategories: List, prefs: PreferencesHelper): Boolean { if (!favorite) return false + val categories = dbCategories.ifEmpty { listOf(0) } + // Boolean to determine if user wants to automatically download new chapters. val downloadNewChapter = prefs.downloadNewChapter().get() if (!downloadNewChapter) return false