|
|
@ -440,15 +440,14 @@ class MangaDetailsPresenter(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
isLoading = false
|
|
|
|
isLoading = false
|
|
|
|
if (chapterError == null) withContext(Dispatchers.Main) { controller.updateChapters(this@MangaDetailsPresenter.chapters) }
|
|
|
|
if (chapterError == null) withContext(Dispatchers.Main) { controller.updateChapters(this@MangaDetailsPresenter.chapters) }
|
|
|
|
else {
|
|
|
|
if (chapterError != null) {
|
|
|
|
withContext(Dispatchers.Main) {
|
|
|
|
withContext(Dispatchers.Main) {
|
|
|
|
controller.showError(
|
|
|
|
controller.showError(
|
|
|
|
trimException(mangaError!!)
|
|
|
|
trimException(chapterError!!)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return@launch
|
|
|
|
return@launch
|
|
|
|
}
|
|
|
|
} else if (mangaError != null) withContext(Dispatchers.Main) {
|
|
|
|
if (mangaError != null) withContext(Dispatchers.Main) {
|
|
|
|
|
|
|
|
controller.showError(
|
|
|
|
controller.showError(
|
|
|
|
trimException(mangaError!!)
|
|
|
|
trimException(mangaError!!)
|
|
|
|
)
|
|
|
|
)
|
|
|
|