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

Commit 5ef7f4dc authored by yanglv's avatar yanglv
Browse files

Mms: Cannot send mms with RUIM card

Updated the CURRENT value to the wrong APN, caused by get wrong
operator numeric in CDMA LTE phone.

Use IccRecords instead of SimRecords to get operator numeric,
set the current value to right apn

Change-Id: If4958bd248319485c3ccf26ae7320323275e1798
parent 345f198b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -197,11 +197,11 @@ public class CDMALTEPhone extends CDMAPhone {

    @Override
    public boolean updateCurrentCarrierInProvider() {
        if (mSimRecords != null) {
        if (mIccRecords.get() != null) {
            try {
                Uri uri = Uri.withAppendedPath(Telephony.Carriers.CONTENT_URI, "current");
                ContentValues map = new ContentValues();
                String operatorNumeric = mSimRecords.getOperatorNumeric();
                String operatorNumeric = mIccRecords.get().getOperatorNumeric();
                map.put(Telephony.Carriers.NUMERIC, operatorNumeric);
                if (DBG) log("updateCurrentCarrierInProvider from UICC: numeric=" +
                        operatorNumeric);