mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-20 08:09:21 +01:00
Fix download custom range menu option not working
This commit is contained in:
parent
ae044021ba
commit
bc6a181530
@ -1042,6 +1042,7 @@ class MangaDetailsController :
|
|||||||
R.id.download_next_5 -> presenter.getUnreadChaptersSorted().take(5)
|
R.id.download_next_5 -> presenter.getUnreadChaptersSorted().take(5)
|
||||||
R.id.download_custom -> {
|
R.id.download_custom -> {
|
||||||
createActionModeIfNeeded()
|
createActionModeIfNeeded()
|
||||||
|
rangeMode = RangeMode.Download
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
R.id.download_unread -> presenter.allChapters.filter { !it.read }
|
R.id.download_unread -> presenter.allChapters.filter { !it.read }
|
||||||
@ -1110,13 +1111,13 @@ class MangaDetailsController :
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun startDownloadRange(position: Int) {
|
override fun startDownloadRange(position: Int) {
|
||||||
if (actionMode == null) createActionModeIfNeeded()
|
createActionModeIfNeeded()
|
||||||
rangeMode = RangeMode.Download
|
rangeMode = RangeMode.Download
|
||||||
onItemClick(null, position)
|
onItemClick(null, position)
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun startReadRange(position: Int, mode: RangeMode) {
|
private fun startReadRange(position: Int, mode: RangeMode) {
|
||||||
if (actionMode == null) createActionModeIfNeeded()
|
createActionModeIfNeeded()
|
||||||
rangeMode = mode
|
rangeMode = mode
|
||||||
onItemClick(null, position)
|
onItemClick(null, position)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user