Move io tasks for removing library entries to io thread

relates to #797 but tbd if it fixes it
This commit is contained in:
Jays2Kings 2021-05-08 15:15:13 -04:00
parent 3ec46f958d
commit f1c624fe16

View File

@ -573,10 +573,12 @@ class MangaDetailsPresenter(
}
fun confirmDeletion() {
coverCache.deleteFromCache(manga)
downloadManager.deleteManga(manga, source)
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
asyncUpdateMangaAndChapters(true)
scope.launchIO {
coverCache.deleteFromCache(manga)
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
downloadManager.deleteManga(manga, source)
asyncUpdateMangaAndChapters(true)
}
}
fun setFavorite(favorite: Boolean) {