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

Commit 8c4ee20f authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 8426

* changes:
  Fix bug# 1997056
parents d3eb5311 97b270ab
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1225,8 +1225,8 @@ public interface CommandsInterface {
     * Request the device MDN / H_SID / H_NID / MIN.
     * "response" is const char **
     *   [0] is MDN if CDMA subscription is available
     *   [1] is H_SID (Home SID) if CDMA subscription is available
     *   [2] is H_NID (Home NID) if CDMA subscription is available
     *   [1] is H_SID (Home SID) in hexadecimal if CDMA subscription is available
     *   [2] is H_NID (Home NID) in hexadecimal if CDMA subscription is available
     *   [3] is MIN (10 digits, MIN2+MIN1) if CDMA subscription is available
     */
    public void getCDMASubscription(Message response);
+2 −2
Original line number Diff line number Diff line
@@ -401,11 +401,11 @@ final class CdmaServiceStateTracker extends ServiceStateTracker {
                    // 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;
                        mHomeSystemId = sid.length > 0 ? Integer.parseInt(sid[0], 16) : 0;
                    }
                    if (cdmaSubscription[2] != null) {
                        String[] nid = cdmaSubscription[2].split(",");
                        mHomeNetworkId = nid.length > 0 ? Integer.parseInt(nid[0]) : 0;
                        mHomeNetworkId = nid.length > 0 ? Integer.parseInt(nid[0], 16) : 0;
                    }
                    mMin = cdmaSubscription[3];
                    mPrlVersion = cdmaSubscription[4];