瀏覽代碼

Fix bug in default category downloading logic (#7525)

Trevor Paley 2 年之前
父節點
當前提交
86a018ebad
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/util/MangaExtensions.kt

@@ -53,7 +53,7 @@ fun Manga.removeCovers(coverCache: CoverCache = Injekt.get()): Int {
 fun DomainManga.shouldDownloadNewChapters(dbCategories: List<Long>, prefs: PreferencesHelper): Boolean {
     if (!favorite) return false
 
-    val categories = dbCategories.ifEmpty { listOf(0) }
+    val categories = dbCategories.ifEmpty { listOf(0L) }
 
     // Boolean to determine if user wants to automatically download new chapters.
     val downloadNewChapter = prefs.downloadNewChapter().get()