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

Commit f9994a97 authored by heqing.liu's avatar heqing.liu Committed by 刘和青
Browse files

remove observer in destroy()

bug:388189795

Change-Id: I90d2f1e248dbae23f3943739ce40c73d632547cb
parent 7efc6eaa
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -455,6 +455,9 @@ public class GlobalActionsDialogLite implements DialogInterface.OnDismissListene
        mTelephonyListenerManager.removeServiceStateListener(mPhoneStateListener);
        mGlobalSettings.unregisterContentObserverSync(mAirplaneModeObserver);
        mConfigurationController.removeCallback(this);
        if (mShowSilentToggle) {
            mRingerModeTracker.getRingerMode().removeObservers(this);
        }
    }

    protected Context getContext() {