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

Commit ae49180f authored by jsh's avatar jsh
Browse files

Minor tweak to CDMA_SUBSCRIPTION.

H_SID and H_NID are now comma separated lists, so update CdmaServiceTracker
accordingly. Note: For now, we still only store away the first of each.

Also remove H_SID and H_NID fetching from RuimRecords.java, since it is unused
(and unlikely to be used) in that class.
parent 211aef30
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -665,8 +665,15 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {

                if (cdmaSubscription != null && cdmaSubscription.length >= 4) {
                    mMdn = cdmaSubscription[0];
                    mHomeSystemId = Integer.parseInt(cdmaSubscription[1], 16);
                    mHomeNetworkId = Integer.parseInt(cdmaSubscription[2], 16);
                    // TODO: Only grabbing the first SID/NID for now.
                    if (cdmaSubscription[1] != null) {
                        String[] sid = cdmaSubscription[1].split(",");
                        mHomeSystemId = sid.length > 0 ? Integer.parseInt(sid[0]) : 0;
                    }
                    if (cdmaSubscription[2] != null) {
                        String[] nid = cdmaSubscription[2].split(",");
                        mHomeNetworkId = nid.length > 0 ? Integer.parseInt(nid[0]) : 0;
                    }
                    mMin = cdmaSubscription[3];

                } else {
+0 −4
Original line number Diff line number Diff line
@@ -55,8 +55,6 @@ public final class RuimRecords extends IccRecords {

    private String mImsi;
    private String mMyMobileNumber;
    private String mSid;
    private String mNid;
    private String mMin2Min1;

    private String mPrlVersion;
@@ -242,8 +240,6 @@ public final class RuimRecords extends IccRecords {
                    m_ota_commited = false;
                }
                mMyMobileNumber = localTemp[0];
                mSid = localTemp[1];
                mNid = localTemp[2];
                mMin2Min1 = localTemp[3];
                mPrlVersion = localTemp[4];