Unregister mShowWeatherObserver when KeyguardClockSwitchController is detached

Bug: 295143740
Test: Manually checked codepath with secondary display
Change-Id: I8807d1d58b58f1e5c990c21cef6a810e8b13c1db
This commit is contained in:
Hawkwood Glazier
2023-08-11 19:49:05 +00:00
parent 9c708647d4
commit 89de5a4947

View File

@@ -292,6 +292,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
setClock(null);
mSecureSettings.unregisterContentObserver(mDoubleLineClockObserver);
mSecureSettings.unregisterContentObserver(mShowWeatherObserver);
mKeyguardUnlockAnimationController.removeKeyguardUnlockAnimationListener(
mKeyguardUnlockAnimationListener);