Do not close PW in BlurUtils dump
Kotlin use will close the Closeable after finishing the block. This would close the underlying PW, preventing dumping the rest in SystemUI. Test: adb shell dumpsys activity service com.android.systemui/.SystemUIService dependency Fixes: 149947072 Change-Id: I52d62a47589384a17616fdbb4c0f7e897dedc8ee
This commit is contained in:
@@ -90,7 +90,7 @@ open class BlurUtils @Inject constructor(
|
||||
}
|
||||
|
||||
override fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array<out String>) {
|
||||
IndentingPrintWriter(pw, " ").use {
|
||||
IndentingPrintWriter(pw, " ").let {
|
||||
it.println("BlurUtils:")
|
||||
it.increaseIndent()
|
||||
it.println("minBlurRadius: $minBlurRadius")
|
||||
|
||||
Reference in New Issue
Block a user