From 924dfa19cffed109db8d039cecfa430165abc45e Mon Sep 17 00:00:00 2001 From: Ivan Iskandar <12537387+ivaniskandar@users.noreply.github.com> Date: Mon, 27 Jun 2022 00:37:41 +0700 Subject: [PATCH] MangaScreen: Fix action mode download button not working (#7385) --- app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt | 2 +- .../main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt index 2ecaf411fc..ad746cb567 100644 --- a/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt +++ b/app/src/main/java/eu/kanade/presentation/manga/MangaScreen.kt @@ -338,7 +338,7 @@ private fun MangaScreenSmallImpl( selected.clear() }.takeIf { selected.size == 1 }, onDownloadClicked = { - onDownloadChapter!!(selected, ChapterDownloadAction.START) + onDownloadChapter!!(selected.toList(), ChapterDownloadAction.START) selected.clear() }.takeIf { onDownloadChapter != null && selected.any { it.downloadState != Download.State.DOWNLOADED } diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt index 1a287e8e8d..d84e3ec18e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaController.kt @@ -380,7 +380,7 @@ class MangaController : // SELECTION MODE ACTIONS private fun onDownloadChapters( - items: List, + items: List, action: ChapterDownloadAction, ) { viewScope.launch {