From d511638861bfd8dcd837bff31b726a850b2a9d67 Mon Sep 17 00:00:00 2001 From: Jay Date: Sat, 9 May 2020 13:19:17 -0400 Subject: [PATCH] Delete cached cover of old image on refresh --- .../java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt index b069f20779..74a08cb67f 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/MangaDetailsPresenter.kt @@ -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() } }