mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2024-12-26 08:13:48 +01:00
use incasesensitive checking at included/excluded paths
This commit is contained in:
parent
2acc6d01b9
commit
be3c8a7b89
@ -255,7 +255,7 @@ class MediaFetcher(val context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun isThisOrParentExcluded(path: String, excludedPaths: MutableSet<String>, includedPaths: MutableSet<String>) =
|
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) {
|
private fun getMediaInFolder(folder: String, curMedia: ArrayList<Medium>, isPickImage: Boolean, isPickVideo: Boolean, filterMedia: Int, allowRecursion: Boolean) {
|
||||||
val files = File(folder).listFiles() ?: return
|
val files = File(folder).listFiles() ?: return
|
||||||
|
Loading…
Reference in New Issue
Block a user