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

Commit 6deb7191 authored by Richard LIU's avatar Richard LIU Committed by Gerrit - the friendly Code Review server
Browse files

Do not set "gsm.operator.idpstring" per phoneId

Do not set "gsm.operator.idpstring" per phoneId, otherwise
PhoneNumberUtils could not get the right value

Change-Id: I540846d9208f84ff48b6830d45c66abfb16a8a54
parent 14a9d337
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1429,11 +1429,10 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
        String idd = mHbpcdUtils.getIddByMcc(
                Integer.parseInt(operatorNumeric.substring(0,3)));
        if (idd != null && !idd.isEmpty()) {
            mPhone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_IDP_STRING,
                     idd);
            SystemProperties.set(TelephonyProperties.PROPERTY_OPERATOR_IDP_STRING, idd);
        } else {
            // use default "+", since we don't know the current IDP
            mPhone.setSystemProperty(TelephonyProperties.PROPERTY_OPERATOR_IDP_STRING, "+");
            SystemProperties.set(TelephonyProperties.PROPERTY_OPERATOR_IDP_STRING, "+");
        }
    }