From 136136d055c1b4272f6a93d8d1e3af02471d9aa7 Mon Sep 17 00:00:00 2001 From: len Date: Mon, 9 May 2016 13:29:46 +0200 Subject: [PATCH] Trying workaround for #296 --- .../main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt index b3a34b17e..163d20f27 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/library/LibraryHolder.kt @@ -55,6 +55,7 @@ class LibraryHolder(private val view: View, private val adapter: LibraryCategory * @param coverCache the cache that stores the cover in the filesystem. */ private fun loadCover(manga: Manga, source: Source, coverCache: CoverCache) { + Glide.clear(view.thumbnail) if (!manga.thumbnail_url.isNullOrEmpty()) { coverCache.saveOrLoadFromCache(manga.thumbnail_url, source.glideHeaders) { if (adapter.fragment.isResumed && this.manga == manga) { @@ -67,8 +68,6 @@ class LibraryHolder(private val view: View, private val adapter: LibraryCategory .into(itemView.thumbnail) } } - } else { - Glide.clear(view.thumbnail) } }