Fix crash when open manga/chapter link caused by #612
This commit is contained in:
parent
3609e3ec92
commit
01e3520416
1 changed files with 6 additions and 1 deletions
|
|
@ -73,7 +73,12 @@ class GlobalSearchScreen(
|
|||
is SearchItemResult.Success -> {
|
||||
val manga = result.result.singleOrNull()
|
||||
if (manga != null) {
|
||||
navigator.replace(MangaScreen(manga.id, true))
|
||||
// KMK -->
|
||||
scope.launchIO {
|
||||
val localManga = screenModel.networkToLocalManga.getLocal(manga)
|
||||
// KMK <--
|
||||
navigator.replace(MangaScreen(localManga.id, true))
|
||||
}
|
||||
} else {
|
||||
// Backoff to result screen
|
||||
showSingleLoadingScreen = false
|
||||
|
|
|
|||
Loading…
Reference in a new issue