From 0fffde50fffd6a774a64634bb60ad0e08f469719 Mon Sep 17 00:00:00 2001 From: zaghdaneh <46049558+zaghdaneh@users.noreply.github.com> Date: Thu, 13 Jul 2023 05:09:15 +0200 Subject: [PATCH] Fix to multiple chapter download incorrect state (#9707) add subscription to download manager queue state flow --- .../main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt index ca8bf5c638..34c69a7170 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaScreenModel.kt @@ -149,7 +149,8 @@ class MangaInfoScreenModel( combine( getMangaAndChapters.subscribe(mangaId).distinctUntilChanged(), downloadCache.changes, - ) { mangaAndChapters, _ -> mangaAndChapters } + downloadManager.queueState, + ) { mangaAndChapters, _, _ -> mangaAndChapters } .collectLatest { (manga, chapters) -> updateSuccessState { it.copy(