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

This commit is contained in:
Ivan Iskandar
2022-06-27 00:37:41 +07:00
committed by GitHub
parent 9ff6ae81bd
commit 924dfa19cf
2 changed files with 2 additions and 2 deletions

View File

@@ -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 }