Delete cached cover of old image on refresh

This commit is contained in:
Jay 2020-05-09 13:19:17 -04:00
parent 927700f4e2
commit d511638861

View File

@ -403,6 +403,7 @@ class MangaDetailsPresenter(
manga.initialized = true
db.insertManga(manga).executeAsBlocking()
if (thumbnailUrl != networkManga.thumbnail_url && !manga.hasCustomCover()) {
coverCache.deleteFromCache(thumbnailUrl)
MangaImpl.setLastCoverFetch(manga.id!!, Date().time)
withContext(Dispatchers.Main) { controller.setPaletteColor() }
}