diff --git a/logcat/src/main/java/com/dp/logcat/Logcat.kt b/logcat/src/main/java/com/dp/logcat/Logcat.kt index 5fdc9c1..8a18afd 100644 --- a/logcat/src/main/java/com/dp/logcat/Logcat.kt +++ b/logcat/src/main/java/com/dp/logcat/Logcat.kt @@ -517,7 +517,7 @@ class Logcat(initialCapacity: Int = INITIAL_LOG_CAPACITY) : Closeable { val result = mutableSetOf() val stdoutList = mutableListOf() - CommandUtils.runCmd(cmd = *arrayOf("logcat", "-g"), stdoutList = stdoutList) + CommandUtils.runCmd(cmd = arrayOf("logcat", "-g"), stdoutList = stdoutList) for (s in stdoutList) { val colonIndex = s.indexOf(":") @@ -573,7 +573,7 @@ class Logcat(initialCapacity: Int = INITIAL_LOG_CAPACITY) : Closeable { val result = mutableSetOf() val stdoutList = mutableListOf() - CommandUtils.runCmd(cmd = *arrayOf("logcat", "-h"), + CommandUtils.runCmd(cmd = arrayOf("logcat", "-h"), stdoutList = stdoutList, redirectStderr = true) var bFound = false