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

Commit 316b7d0b authored by Chen Xu's avatar Chen Xu Committed by android-build-merger
Browse files

Merge "clear mdn cache on SIM absent" into oc-mr1-dev am: 6cfdfd6e

am: 82ba94bf

Change-Id: If472c790d002dd5c4af7ed45712cf5d2b9f164e4
parents 0ce108c3 82ba94bf
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1317,8 +1317,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:
@@ -3866,6 +3869,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();