mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 18:51:51 +01:00
Fixed manga details crash on error
This commit is contained in:
parent
89ccfe2691
commit
c07ed374e8
@ -440,15 +440,14 @@ class MangaDetailsPresenter(
|
||||
}
|
||||
isLoading = false
|
||||
if (chapterError == null) withContext(Dispatchers.Main) { controller.updateChapters(this@MangaDetailsPresenter.chapters) }
|
||||
else {
|
||||
if (chapterError != null) {
|
||||
withContext(Dispatchers.Main) {
|
||||
controller.showError(
|
||||
trimException(mangaError!!)
|
||||
trimException(chapterError!!)
|
||||
)
|
||||
}
|
||||
return@launch
|
||||
}
|
||||
if (mangaError != null) withContext(Dispatchers.Main) {
|
||||
} else if (mangaError != null) withContext(Dispatchers.Main) {
|
||||
controller.showError(
|
||||
trimException(mangaError!!)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user