Fix crash on History tab when there is no next chapter (#6970)

pull/6974/head
Andreas 2 years ago committed by GitHub
parent b1f46ed830
commit a35995b898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,9 @@ 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)
view?.openChapter(chapter) launchUI {
view?.openChapter(chapter)
}
} }
} }

Loading…
Cancel
Save