From 097518c6c26c8a19b5b729696f6c07291f15600c Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier Date: Tue, 15 Aug 2023 17:13:51 +0000 Subject: [PATCH] Only register the primary KeyguardClockSwitchController w/ DumpManager This prevents the KCSC associated with the secondary display from dumping, but also prevents it from leaking after the secondary display has been removed. Bug: 295143740 Test: Manually checked with secondary display Change-Id: Iebe14fad8e0a883c5f4fec7fb50bb6ce0107f8fc Merged-In: Iebe14fad8e0a883c5f4fec7fb50bb6ce0107f8fc --- .../com/android/keyguard/KeyguardClockSwitchController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index 21d8c0af56853..847f0a0d106ca 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -211,8 +211,10 @@ public class KeyguardClockSwitchController extends ViewController