mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
use incasesensitive checking at included/excluded paths
This commit is contained in:
parent
2acc6d01b9
commit
be3c8a7b89
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ class MediaFetcher(val context: Context) {
|
|||
}
|
||||
|
||||
private fun isThisOrParentExcluded(path: String, excludedPaths: MutableSet<String>, includedPaths: MutableSet<String>) =
|
||||
includedPaths.none { path.startsWith(it) } && excludedPaths.any { path.startsWith(it) }
|
||||
includedPaths.none { path.startsWith(it, true) } && excludedPaths.any { path.startsWith(it, true) }
|
||||
|
||||
private fun getMediaInFolder(folder: String, curMedia: ArrayList<Medium>, isPickImage: Boolean, isPickVideo: Boolean, filterMedia: Int, allowRecursion: Boolean) {
|
||||
val files = File(folder).listFiles() ?: return
|
||||
|
|
Loading…
Reference in a new issue