From 746ccc2d9620775a8a19fb3e7e0cb5fc27126b18 Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 21 Nov 2016 18:19:29 +0100 Subject: [PATCH] enable caching of media thumbnails --- .../com/simplemobiletools/gallery/adapters/MediaAdapter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt index 655870e88..5dade4b90 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/adapters/MediaAdapter.kt @@ -186,7 +186,7 @@ class MediaAdapter(val activity: SimpleActivity, val media: MutableList, 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) }