Fix crash on History tab when there is no next chapter (#6970)
This commit is contained in:
parent
b1f46ed830
commit
a35995b898
1 changed files with 3 additions and 1 deletions
|
@ -95,9 +95,11 @@ class HistoryPresenter(
|
||||||
fun getNextChapterForManga(mangaId: Long, chapterId: Long) {
|
fun getNextChapterForManga(mangaId: Long, chapterId: Long) {
|
||||||
presenterScope.launchIO {
|
presenterScope.launchIO {
|
||||||
val chapter = getNextChapterForManga.await(mangaId, chapterId)
|
val chapter = getNextChapterForManga.await(mangaId, chapterId)
|
||||||
|
launchUI {
|
||||||
view?.openChapter(chapter)
|
view?.openChapter(chapter)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
fun deleteAllHistory() {
|
fun deleteAllHistory() {
|
||||||
presenterScope.launchIO {
|
presenterScope.launchIO {
|
||||||
|
|
Reference in a new issue