This commit is contained in:
len 2016-04-13 16:45:39 +02:00
parent dc80a5ffbd
commit 09902566ad
2 changed files with 2 additions and 0 deletions

View file

@ -50,6 +50,7 @@ class CatalogueGridHolder(private val view: View, private val adapter: Catalogue
.load(if (headers != null) GlideUrl(url, headers) else url) .load(if (headers != null) GlideUrl(url, headers) else url)
.diskCacheStrategy(DiskCacheStrategy.SOURCE) .diskCacheStrategy(DiskCacheStrategy.SOURCE)
.centerCrop() .centerCrop()
.placeholder(android.R.color.transparent)
.into(view.thumbnail) .into(view.thumbnail)
} else { } else {

View file

@ -63,6 +63,7 @@ class LibraryHolder(private val view: View, adapter: LibraryCategoryAdapter, lis
.diskCacheStrategy(DiskCacheStrategy.RESULT) .diskCacheStrategy(DiskCacheStrategy.RESULT)
.centerCrop() .centerCrop()
.signature(StringSignature(it.lastModified().toString())) .signature(StringSignature(it.lastModified().toString()))
.placeholder(android.R.color.transparent)
.into(itemView.thumbnail) .into(itemView.thumbnail)
} }
} }