mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 12:30:36 +01:00
fix up folder Inclusion, check if its not empty
This commit is contained in:
parent
5057f4e54a
commit
9398c9be76
@ -144,7 +144,7 @@ private fun parseCursor(context: Context, cur: Cursor, isPickImage: Boolean, isP
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
config.includedFolders.filter { it.isEmpty() || it == curPath }.mapNotNull { File(it).listFiles() }.forEach {
|
config.includedFolders.filter { it.isNotEmpty() || it == curPath }.mapNotNull { File(it).listFiles() }.forEach {
|
||||||
for (file in it) {
|
for (file in it) {
|
||||||
val size = file.length()
|
val size = file.length()
|
||||||
if (size <= 0L) {
|
if (size <= 0L) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user