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() { fun confirmDeletion() {
coverCache.deleteFromCache(manga) scope.launchIO {
downloadManager.deleteManga(manga, source) coverCache.deleteFromCache(manga)
customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!)) customMangaManager.saveMangaInfo(CustomMangaManager.MangaJson(manga.id!!))
asyncUpdateMangaAndChapters(true) downloadManager.deleteManga(manga, source)
asyncUpdateMangaAndChapters(true)
}
} }
fun setFavorite(favorite: Boolean) { fun setFavorite(favorite: Boolean) {