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

Commit d2af427e authored by emancebo's avatar emancebo Committed by Brint E. Kriebel
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
Ticket: CYNGNOS-333
(cherry picked from commit af066e1f)
parent 3e8de674
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1095,7 +1095,10 @@ public abstract class ServiceStateTracker extends Handler {
    protected abstract void setRoamingType(ServiceState currentServiceState);

    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() {