Skip to content

Commit

Permalink
feat: add time in logcat
Browse files Browse the repository at this point in the history
Refs #646
  • Loading branch information
goofyz committed Dec 11, 2023
1 parent 5e1b5a8 commit 85e1b17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class LogView
val color =
ContextCompat.getColor(
context,
when (str.first()) {
when (str.codePointAt(19).toChar()) {
'V' -> R.color.grey_700
'D' -> R.color.grey_700
'I' -> R.color.blue_500
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/com/osfans/trime/util/Logcat.kt
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Logcat(val pid: Int? = Process.myPid()) : CoroutineScope by CoroutineScope
runCatching {
Runtime
.getRuntime()
.exec(arrayOf("logcat", pid?.let { "--pid=$it" } ?: "", "-v", "brief"))
.exec(arrayOf("logcat", pid?.let { "--pid=$it" } ?: "", "-v", "time"))
.also { process = it }
.inputStream
.bufferedReader()
Expand Down

0 comments on commit 85e1b17

Please sign in to comment.