mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 20:01:53 +01:00
Delete cached cover of old image on refresh
This commit is contained in:
parent
927700f4e2
commit
d511638861
@ -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() }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user