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

Commit b6669a9c authored by Muhammed Siju's avatar Muhammed Siju Committed by Gerrit - the friendly Code Review server
Browse files

Read the PS auto attach on creation config value from resources.

mAutoAttachOnCreationConfig needs to be set based on the resource config
value.

Change-Id: I0a166438af0a17e385d7b2969cc1505734e910f1
CRs-Fixed: 783342
parent 54012eb0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1975,6 +1975,12 @@ public final class DcTracker extends DcTrackerBase {
    }

    private void onRecordsLoaded() {
        mAutoAttachOnCreationConfig = mPhone.getContext().getResources()
                .getBoolean(com.android.internal.R.bool.config_auto_attach_data_on_creation);
        if (mAutoAttachOnCreationConfig && mAttached.get()) {
            mAutoAttachOnCreation = true;
        }

        if (mOmhApt != null) {
            log("OMH: onRecordsLoaded(): calling loadProfiles()");
            /* query for data profiles stored in the modem */