From de52ef1f20cbbe9bccf22791d268fe2c101dcba0 Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier Date: Tue, 15 Aug 2023 17:13:51 +0000 Subject: 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 --- .../src/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 3d48f3cc5359..c64fcbd2b980 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