enable caching of media thumbnails

This commit is contained in:
tibbi 2016-11-21 18:19:29 +01:00
parent b5a1600dab
commit 746ccc2d96

View file

@ -186,7 +186,7 @@ class MediaAdapter(val activity: SimpleActivity, val media: MutableList<Medium>,
if (medium.isGif) {
Glide.with(activity).load(path).asGif().diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature).into(itemView.medium_thumbnail)
} else {
Glide.with(activity).load(path).diskCacheStrategy(DiskCacheStrategy.NONE).signature(timestampSignature)
Glide.with(activity).load(path).diskCacheStrategy(DiskCacheStrategy.RESULT).signature(timestampSignature)
.placeholder(R.color.tmb_background).centerCrop().crossFade().into(itemView.medium_thumbnail)
}