diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt index 116c911aa..da42de22e 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/extensions/Activity.kt @@ -598,7 +598,7 @@ fun Activity.fileRotatedSuccessfully(path: String, lastModified: Long) { updateLastModified(path, lastModified) } - Picasso.get().invalidate(path.getFileKey()) + Picasso.get().invalidate(path.getFileKey(lastModified)) // we cannot refresh a specific image in Glide Cache, so just clear it all val glide = Glide.get(applicationContext) glide.clearDiskCache() diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index 8a2da324e..7114cfdcf 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -410,7 +410,7 @@ class PhotoFragment : ViewPagerFragment() { private fun loadWithGlide(path: String, addZoomableView: Boolean) { val priority = if (mIsFragmentVisible) Priority.IMMEDIATE else Priority.NORMAL val options = RequestOptions() - .signature(getFilePathToShow().getFileSignature()) + .signature(getFilePathToShow().getFileSignature(mMedium.modified)) .format(DecodeFormat.PREFER_ARGB_8888) .priority(priority) .diskCacheStrategy(DiskCacheStrategy.RESOURCE) @@ -450,7 +450,7 @@ class PhotoFragment : ViewPagerFragment() { val picasso = Picasso.get() .load(pathToLoad) .centerInside() - .stableKey(mMedium.path.getFileKey()) + .stableKey(mMedium.path.getFileKey(mMedium.modified)) .resize(mScreenWidth, mScreenHeight) if (mCurrentRotationDegrees != 0) {