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:
Fabian Kozynski
2020-02-20 18:27:47 -05:00
parent 8887c6da17
commit e3bfd664af

View File

@@ -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")