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

Commit c9c3e0f8 authored by Hawkwood Glazier's avatar Hawkwood Glazier Committed by Selim Cinek
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)
Merged-In: I8807d1d58b58f1e5c990c21cef6a810e8b13c1db
Change-Id: I8807d1d58b58f1e5c990c21cef6a810e8b13c1db
parent 04cc4301
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);