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

Commit 68133d95 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Clear voicemail information if CDMA sim is inserted"

parents 26099b8f 6bf91cd1
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -2240,18 +2240,17 @@ public class GsmCdmaPhone extends Phone {
                break;

            case EVENT_SIM_RECORDS_LOADED:
                if (isPhoneTypeGsm()) {
                updateCurrentCarrierInProvider();

                // Check if this is a different SIM than the previous one. If so unset the
                // voice mail number.
                String imsi = getVmSimImsi();
                String imsiFromSIM = getSubscriberId();
                    if (imsi != null && imsiFromSIM != null && !imsiFromSIM.equals(imsi)) {
                if ((!isPhoneTypeGsm() || imsi != null) && imsiFromSIM != null
                        && !imsiFromSIM.equals(imsi)) {
                    storeVoiceMailNumber(null);
                    setVmSimImsi(null);
                }
                }

                mSimRecordsLoadedRegistrants.notifyRegistrants();
                break;