mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-17 13:09:17 +01:00
Trying workaround for #296
This commit is contained in:
parent
c20d86e5c0
commit
136136d055
@ -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.
|
* @param coverCache the cache that stores the cover in the filesystem.
|
||||||
*/
|
*/
|
||||||
private fun loadCover(manga: Manga, source: Source, coverCache: CoverCache) {
|
private fun loadCover(manga: Manga, source: Source, coverCache: CoverCache) {
|
||||||
|
Glide.clear(view.thumbnail)
|
||||||
if (!manga.thumbnail_url.isNullOrEmpty()) {
|
if (!manga.thumbnail_url.isNullOrEmpty()) {
|
||||||
coverCache.saveOrLoadFromCache(manga.thumbnail_url, source.glideHeaders) {
|
coverCache.saveOrLoadFromCache(manga.thumbnail_url, source.glideHeaders) {
|
||||||
if (adapter.fragment.isResumed && this.manga == manga) {
|
if (adapter.fragment.isResumed && this.manga == manga) {
|
||||||
@ -67,8 +68,6 @@ class LibraryHolder(private val view: View, private val adapter: LibraryCategory
|
|||||||
.into(itemView.thumbnail)
|
.into(itemView.thumbnail)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Glide.clear(view.thumbnail)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user