Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f99aa704 authored by Ned Burns's avatar Ned Burns
Browse files

Fix warnings in LogcatEchoTrackerDebug

Test: atest
Bug: 230669926
Change-Id: I7afa5fb462d58f05d8e9972a431b35544406e01c
parent 598ec025
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ class LogcatEchoTrackerDebug private constructor(
                Settings.Global.getUriFor(BUFFER_PATH),
                true,
                object : ContentObserver(Handler(mainLooper)) {
                    override fun onChange(selfChange: Boolean, uri: Uri) {
                    override fun onChange(selfChange: Boolean, uri: Uri?) {
                        super.onChange(selfChange, uri)
                        cachedBufferLevels.clear()
                    }
@@ -70,7 +70,7 @@ class LogcatEchoTrackerDebug private constructor(
                Settings.Global.getUriFor(TAG_PATH),
                true,
                object : ContentObserver(Handler(mainLooper)) {
                    override fun onChange(selfChange: Boolean, uri: Uri) {
                    override fun onChange(selfChange: Boolean, uri: Uri?) {
                        super.onChange(selfChange, uri)
                        cachedTagLevels.clear()
                    }
@@ -110,7 +110,7 @@ class LogcatEchoTrackerDebug private constructor(
    }

    private fun parseProp(propValue: String?): LogLevel {
        return when (propValue?.toLowerCase()) {
        return when (propValue?.lowercase()) {
            "verbose" -> LogLevel.VERBOSE
            "v" -> LogLevel.VERBOSE
            "debug" -> LogLevel.DEBUG