From 0cecfb4a6f69240ee1800750cf2cbbf0c5090f3f Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 17 Apr 2017 19:01:04 +0200 Subject: [PATCH] use a signature at loading fullscreen images with glide --- .../com/simplemobiletools/gallery/fragments/PhotoFragment.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt index 34ed122cd..557abba1d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/fragments/PhotoFragment.kt @@ -25,6 +25,7 @@ import com.simplemobiletools.commons.extensions.toast import com.simplemobiletools.gallery.R import com.simplemobiletools.gallery.activities.ViewPagerActivity import com.simplemobiletools.gallery.extensions.config +import com.simplemobiletools.gallery.extensions.getFileSignature import com.simplemobiletools.gallery.extensions.getRealPathFromURI import com.simplemobiletools.gallery.helpers.GlideRotateTransformation import com.simplemobiletools.gallery.helpers.MEDIUM @@ -164,6 +165,7 @@ class PhotoFragment : ViewPagerFragment() { Glide.with(this) .load(medium.path) .asBitmap() + .signature(activity.getFileSignature(medium.path)) .format(if (medium.isPng()) DecodeFormat.PREFER_ARGB_8888 else DecodeFormat.PREFER_RGB_565) .diskCacheStrategy(DiskCacheStrategy.NONE) .override(targetWidth, targetHeight)