Delete cached cover of old image on refresh
This commit is contained in:
parent
927700f4e2
commit
d511638861
1 changed files with 1 additions and 0 deletions
|
@ -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() }
|
||||
}
|
||||
|
|
Reference in a new issue