be incasesensitive when comparing directory paths

This commit is contained in:
tibbi 2016-11-13 11:55:24 +01:00
parent c480dd23ff
commit ed2f9117bb

View file

@ -62,7 +62,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
val newImageCnt = directory.mediaCnt + 1 val newImageCnt = directory.mediaCnt + 1
directory.mediaCnt = newImageCnt directory.mediaCnt = newImageCnt
directory.addSize(file.length()) directory.addSize(file.length())
} else if (!mToBeDeleted.contains(parentDir)) { } else if (!mToBeDeleted.contains(parentDir.toLowerCase())) {
var dirName = Utils.getFilename(context, parentDir) var dirName = Utils.getFilename(context, parentDir)
if (mConfig.getIsFolderHidden(parentDir)) { if (mConfig.getIsFolderHidden(parentDir)) {
dirName += " ${context.resources.getString(R.string.hidden)}" dirName += " ${context.resources.getString(R.string.hidden)}"