From ed2f9117bb33425fe4a57c42d5e627497e6acf28 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 13 Nov 2016 11:55:24 +0100 Subject: [PATCH] be incasesensitive when comparing directory paths --- .../gallery/asynctasks/GetDirectoriesAsynctask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt index a890a9c65..49d78ab31 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/asynctasks/GetDirectoriesAsynctask.kt @@ -62,7 +62,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va val newImageCnt = directory.mediaCnt + 1 directory.mediaCnt = newImageCnt directory.addSize(file.length()) - } else if (!mToBeDeleted.contains(parentDir)) { + } else if (!mToBeDeleted.contains(parentDir.toLowerCase())) { var dirName = Utils.getFilename(context, parentDir) if (mConfig.getIsFolderHidden(parentDir)) { dirName += " ${context.resources.getString(R.string.hidden)}"