show included folders content only when appropriate
This commit is contained in:
parent
52f0316b8d
commit
32b6a87440
|
@ -150,7 +150,7 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
|||
}
|
||||
}
|
||||
|
||||
config.includedFolders.filter { it.isNotEmpty() || it == curPath }.mapNotNull { File(it).listFiles() }.forEach {
|
||||
config.includedFolders.filter { it.isNotEmpty() && (curPath.isEmpty() || it == curPath) }.mapNotNull { File(it).listFiles() }.forEach {
|
||||
for (file in it) {
|
||||
val size = file.length()
|
||||
if (size <= 0L) {
|
||||
|
|
Loading…
Reference in New Issue