mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-24 03:01:50 +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
|
manga.initialized = true
|
||||||
db.insertManga(manga).executeAsBlocking()
|
db.insertManga(manga).executeAsBlocking()
|
||||||
if (thumbnailUrl != networkManga.thumbnail_url && !manga.hasCustomCover()) {
|
if (thumbnailUrl != networkManga.thumbnail_url && !manga.hasCustomCover()) {
|
||||||
|
coverCache.deleteFromCache(thumbnailUrl)
|
||||||
MangaImpl.setLastCoverFetch(manga.id!!, Date().time)
|
MangaImpl.setLastCoverFetch(manga.id!!, Date().time)
|
||||||
withContext(Dispatchers.Main) { controller.setPaletteColor() }
|
withContext(Dispatchers.Main) { controller.setPaletteColor() }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user