From e3bfd664af4f850c2a51f8aa31de55a212294987 Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Thu, 20 Feb 2020 18:27:47 -0500 Subject: [PATCH] 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 --- .../SystemUI/src/com/android/systemui/statusbar/BlurUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/BlurUtils.kt b/packages/SystemUI/src/com/android/systemui/statusbar/BlurUtils.kt index ab69d477c2ee9..4bb8621f99880 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/BlurUtils.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/BlurUtils.kt @@ -90,7 +90,7 @@ open class BlurUtils @Inject constructor( } override fun dump(fd: FileDescriptor, pw: PrintWriter, args: Array) { - IndentingPrintWriter(pw, " ").use { + IndentingPrintWriter(pw, " ").let { it.println("BlurUtils:") it.increaseIndent() it.println("minBlurRadius: $minBlurRadius")