Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d45fe160 authored by Hawkwood Glazier's avatar Hawkwood Glazier Committed by Android Build Coastguard Worker
Browse files

Unregister mShowWeatherObserver when KeyguardClockSwitchController is detached

Bug: 295143740
Bug: 293929945
Test: Manually checked codepath with secondary display
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:dea88a049ba8eabe381b5a5318dd77b5aa1d186f)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c9c3e0f81a9c3037d06c7ffa8c66d08d74f0cf40)
Merged-In: I8807d1d58b58f1e5c990c21cef6a810e8b13c1db
Change-Id: I8807d1d58b58f1e5c990c21cef6a810e8b13c1db
parent 562084ac
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -266,6 +266,7 @@ public class KeyguardClockSwitchController extends ViewController<KeyguardClockS
        setClock(null);

        mSecureSettings.unregisterContentObserver(mDoubleLineClockObserver);
        mSecureSettings.unregisterContentObserver(mShowWeatherObserver);

        mKeyguardUnlockAnimationController.removeKeyguardUnlockAnimationListener(
                mKeyguardUnlockAnimationListener);