From 3fdce65fe05454d25694f27e21958ebd7a78ecc8 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 14 Apr 2018 22:29:23 +0200 Subject: [PATCH] use file absolute path instead of name at file signature --- .../kotlin/com/simplemobiletools/gallery/extensions/String.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a2e6cbfc8..db7b0ec87 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/extensions/String.kt @@ -5,7 +5,7 @@ import java.io.File fun String.getFileSignature(): ObjectKey { val file = File(this) - return ObjectKey("${file.name}${file.lastModified()}") + return ObjectKey("${file.absolutePath}${file.lastModified()}") } fun String.isThisOrParentIncluded(includedPaths: MutableSet) = includedPaths.any { startsWith(it, true) }