mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
hide folders that contain .nomedia file themselves
This commit is contained in:
parent
26aa79294b
commit
e2f149eb3e
1 changed files with 2 additions and 0 deletions
|
@ -187,6 +187,8 @@ class MediaFetcher(val context: Context) {
|
||||||
val file = File(path)
|
val file = File(path)
|
||||||
return if (path.isEmpty()) {
|
return if (path.isEmpty()) {
|
||||||
false
|
false
|
||||||
|
} else if (file.containsNoMedia()) {
|
||||||
|
false
|
||||||
} else if (path.isThisOrParentIncluded(includedPaths)) {
|
} else if (path.isThisOrParentIncluded(includedPaths)) {
|
||||||
true
|
true
|
||||||
} else if (path.isThisOrParentExcluded(excludedPaths)) {
|
} else if (path.isThisOrParentExcluded(excludedPaths)) {
|
||||||
|
|
Loading…
Reference in a new issue