Browse Source

MangaScreen: Fix action mode download button not working (#7385)

Ivan Iskandar 2 years ago
parent
commit
924dfa19cf

+ 1 - 1
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 }

+ 1 - 1
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<eu.kanade.tachiyomi.ui.manga.ChapterItem>,
+        items: List<ChapterItem>,
         action: ChapterDownloadAction,
     ) {
         viewScope.launch {