mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-22 17:01:48 +01:00
Fix crash on History tab when there is no next chapter (#6970)
This commit is contained in:
parent
b1f46ed830
commit
a35995b898
@ -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…
Reference in New Issue
Block a user