diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt index 692256eec..a2e6cbfc8 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt @@ -3,7 +3,10 @@ package com.simplemobiletools.gallery.extensions import com.bumptech.glide.signature.ObjectKey import java.io.File -fun String.getFileSignature() = ObjectKey(File(this).lastModified().toString()) +fun String.getFileSignature(): ObjectKey { + val file = File(this) + return ObjectKey("${file.name}${file.lastModified()}") +} fun String.isThisOrParentIncluded(includedPaths: MutableSet) = includedPaths.any { startsWith(it, true) }