Trying workaround for #296
Cette révision appartient à :
Parent
c20d86e5c0
révision
136136d055
1 fichiers modifiés avec 1 ajouts et 2 suppressions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Référencer dans un nouveau ticket