mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-11 07:29:16 +01:00
enable caching of media thumbnails
This commit is contained in:
parent
b5a1600dab
commit
746ccc2d96
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user