mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
do not ever append explicitly included folders with "(hidden)"
This commit is contained in:
parent
7888de7b52
commit
f1fe2028d5
1 changed files with 2 additions and 1 deletions
|
@ -30,6 +30,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
val hidden = context.resources.getString(R.string.hidden)
|
val hidden = context.resources.getString(R.string.hidden)
|
||||||
val albumCovers = config.parseAlbumCovers()
|
val albumCovers = config.parseAlbumCovers()
|
||||||
val hasOTG = context.hasOTGConnected() && context.config.OTGBasePath.isNotEmpty()
|
val hasOTG = context.hasOTGConnected() && context.config.OTGBasePath.isNotEmpty()
|
||||||
|
val includedFolders = config.includedFolders
|
||||||
|
|
||||||
for ((path, curMedia) in groupedMedia) {
|
for ((path, curMedia) in groupedMedia) {
|
||||||
Medium.sorting = config.getFileSorting(path)
|
Medium.sorting = config.getFileSorting(path)
|
||||||
|
@ -62,7 +63,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (File(parentDir).doesParentHaveNoMedia()) {
|
if (File(parentDir).doesParentHaveNoMedia() && !includedFolders.contains(parentDir)) {
|
||||||
dirName += " $hidden"
|
dirName += " $hidden"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue