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

Commit c90dd9a0 authored by Yashdev Singh's avatar Yashdev Singh Committed by Linux Build Service Account
Browse files

Telephony: Send INITIAL_ATTACH only when it is applicable.

Issue is that SET_INITIAL_ATTACH is being sent whenever subId changes.

During bootup subId does change before records gets loaded. This results
in SET_INITIAL_ATTACH with incorrect APN setting/profile.

Solution is to send SET_INITIAL_ATTACH only when cdmaSubscriptionSource
is RUIM based and records have been loaded.

Change-Id: I68280db4831935326c732943e5b763d3b3a4c3fe
parent 5d125d87
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -561,7 +561,7 @@ public class DcTracker extends Handler {
    // member variables
    protected final Phone mPhone;
    private final UiccController mUiccController;
    private final AtomicReference<IccRecords> mIccRecords = new AtomicReference<IccRecords>();
    protected final AtomicReference<IccRecords> mIccRecords = new AtomicReference<IccRecords>();
    private DctConstants.Activity mActivity = DctConstants.Activity.NONE;
    protected DctConstants.State mState = DctConstants.State.IDLE;
    private final Handler mDataConnectionTracker;
@@ -1399,7 +1399,7 @@ public class DcTracker extends Handler {
        setupDataOnConnectableApns(Phone.REASON_DATA_ATTACHED);
    }

    private boolean isNvSubscription() {
    protected boolean isNvSubscription() {
        int cdmaSubscriptionSource = CdmaSubscriptionSourceManager.getDefault(mPhone.getContext());
        if (cdmaSubscriptionSource ==
                CdmaSubscriptionSourceManager.SUBSCRIPTION_FROM_NV) {