show the content of empty folders instantly

This commit is contained in:
tibbi 2018-04-16 12:43:29 +02:00
parent b03db843f2
commit dd8d54bd4f
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,12 @@ class RootHelpers {
} }
override fun commandCompleted(id: Int, exitcode: Int) { override fun commandCompleted(id: Int, exitcode: Int) {
getChildrenCount(activity, files, path, callback) if (files.isEmpty()) {
callback(path, files)
} else {
getChildrenCount(activity, files, path, callback)
}
super.commandCompleted(id, exitcode) super.commandCompleted(id, exitcode)
} }
} }