From 56028aff5546222da2f03af2f84d8660917b828e Mon Sep 17 00:00:00 2001 From: Andreas Date: Fri, 29 Jul 2022 13:46:09 +0200 Subject: [PATCH] Fix category exclude not working in DownloadManager (#7641) --- .../java/eu/kanade/tachiyomi/data/download/DownloadManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt index 6ca9be9e8e..85c0447500 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/download/DownloadManager.kt @@ -361,9 +361,9 @@ class DownloadManager( private fun getChaptersToDelete(chapters: List, manga: Manga): List { // Retrieve the categories that are set to exclude from being deleted on read - val categoriesToExclude = preferences.removeExcludeCategories().get().map(String::toInt) + val categoriesToExclude = preferences.removeExcludeCategories().get().map(String::toLong) - val categoriesForManga = runBlocking { getCategories.await(manga.id!!) } + val categoriesForManga = runBlocking { getCategories.await(manga.id) } .map { it.id } .takeUnless { it.isEmpty() } ?: listOf(0)