mirror of
https://github.com/null2264/yokai.git
synced 2025-06-20 18:24:42 +00:00
fix(manga): Fix crashes
This commit is contained in:
parent
cba97eb94d
commit
18c5a68981
2 changed files with 8 additions and 2 deletions
|
@ -11,6 +11,10 @@ The format is simplified version of [Keep a Changelog](https://keepachangelog.co
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
### Fixes
|
||||
- Fix weird flickering when browsing sources
|
||||
- Fix some crashes
|
||||
|
||||
## [1.9.5]
|
||||
|
||||
### Changes
|
||||
|
|
|
@ -227,7 +227,9 @@ class MangaDetailsPresenter(
|
|||
|
||||
presenterScope.launch {
|
||||
isLoading = true
|
||||
controller.updateHeader()
|
||||
withUIContext {
|
||||
controller.updateHeader()
|
||||
}
|
||||
val tasks = listOf(
|
||||
async { if (fetchMangaNeeded) fetchMangaFromSource() },
|
||||
async { if (fetchChaptersNeeded) fetchChaptersFromSource(false) },
|
||||
|
@ -539,7 +541,7 @@ class MangaDetailsPresenter(
|
|||
}
|
||||
updateChapter.awaitAll(updates)
|
||||
getChapters()
|
||||
withContext(Dispatchers.Main) { view?.updateChapters() }
|
||||
withUIContext { view?.updateChapters() }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue