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

Commit aa863054 authored by Sungmin Choi's avatar Sungmin Choi Committed by Vineeta Srivastava
Browse files

telephony: PreferredAPN is not set correctly while device is booting



When device is booting, mPhone.getSubId() return -2.
It makes device get the wrong preferredAPN.

Bug: 23367895
Change-Id: Ieadab013521e81d224ff08e4a60c2d9222cd6578
Signed-off-by: default avatarwooje.shim <wooje.shim@lge.com>
Signed-off-by: default avatarSungmin Choi <sungmin.choi@lge.com>
parent 9d19dccf
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -2760,10 +2760,12 @@ public final class DcTracker extends DcTrackerBase {
                mIccRecords.set(null);
            }
            if (newIccRecords != null) {
                log("New records found");
                if (mPhone.getSubId() >= 0) {
                    log("New records found.");
                    mIccRecords.set(newIccRecords);
                    newIccRecords.registerForRecordsLoaded(
                            this, DctConstants.EVENT_RECORDS_LOADED, null);
                }
            } else {
                onSimNotReady();
            }