From 2bf39803dee465633ce9e47d7458420bdc8ffae7 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 3 Sep 2017 18:19:16 +0200 Subject: [PATCH] move the super.commandOutput as the last function --- .../com/simplemobiletools/filemanager/helpers/RootHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/helpers/RootHelpers.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/helpers/RootHelpers.kt index 3131a938..82172ebe 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/helpers/RootHelpers.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/helpers/RootHelpers.kt @@ -8,7 +8,6 @@ class RootHelpers { fun getFiles(path: String, callback: (fileDirItems: ArrayList) -> Unit) { val command = object : Command(0, "ls -la $path | awk '{print \$1,\$NF}'") { override fun commandOutput(id: Int, line: String) { - super.commandOutput(id, line) val parts = line.split(" ") val files = ArrayList() @@ -18,6 +17,7 @@ class RootHelpers { val fileDirItem = FileDirItem(filePath, filename, isDirectory, 0, 0) files.add(fileDirItem) callback(files) + super.commandOutput(id, line) } override fun commandTerminated(id: Int, reason: String?) {