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

Commit af066e1f authored by emancebo's avatar emancebo Committed by Danny Baumann
Browse files

msim: fix parse error when roaming with slot 2 only

Need to parse the home operator numeric w.r.t. the phoneId.  Looks like this
bug was introduced with a merge from caf.

Change-Id: Ibee79ae193eb59e952c7cc63faaae3890230ab8e
parent 67ea90e5
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -1121,7 +1121,10 @@ public abstract class ServiceStateTracker extends Handler {
    protected abstract void setRoamingType(ServiceState currentServiceState);
    protected abstract void setRoamingType(ServiceState currentServiceState);


    protected String getHomeOperatorNumeric() {
    protected String getHomeOperatorNumeric() {
        return SystemProperties.get(TelephonyProperties.PROPERTY_ICC_OPERATOR_NUMERIC, "");
        final Context context = mPhoneBase.getContext();
        final TelephonyManager tm =
                (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        return tm.getSimOperatorNumericForPhone(mPhoneBase.getPhoneId());
    }
    }


    protected int getPhoneId() {
    protected int getPhoneId() {