do not ever append explicitly included folders with "(hidden)"

This commit is contained in:
tibbi 2018-04-08 22:40:29 +02:00
parent 7888de7b52
commit f1fe2028d5

View file

@ -30,6 +30,7 @@ class GetDirectoriesAsynctask(val context: Context, val isPickVideo: Boolean, va
val hidden = context.resources.getString(R.string.hidden)
val albumCovers = config.parseAlbumCovers()
val hasOTG = context.hasOTGConnected() && context.config.OTGBasePath.isNotEmpty()
val includedFolders = config.includedFolders
for ((path, curMedia) in groupedMedia) {
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"
}