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

Commit 6cfdfd6e authored by Chen Xu's avatar Chen Xu Committed by Android (Google) Code Review
Browse files

Merge "clear mdn cache on SIM absent" into oc-mr1-dev

parents 6d5f4de8 e681be9b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1306,8 +1306,11 @@ public class ServiceStateTracker extends Handler {
                break;

            case EVENT_SIM_NOT_INSERTED:
                if (DBG) log("EVENT_SIM_NOT_INSERTED, cancelling notifications.");
                if (DBG) log("EVENT_SIM_NOT_INSERTED");
                cancelAllNotifications();
                mMdn = null;
                mMin = null;
                mIsMinInfoReady = false;
                break;

            case EVENT_ALL_DATA_DISCONNECTED:
@@ -3864,6 +3867,7 @@ public class ServiceStateTracker extends Handler {
     * removed.
     */
    private void cancelAllNotifications() {
        if (DBG) log("setNotification: cancelAllNotifications");
        NotificationManager notificationManager = (NotificationManager)
                mPhone.getContext().getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.cancelAll();