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

Commit 62794b19 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Telephony: Add the logic for disabling to fetch APN from OMH card"

parents 6e9ec358 cb47ed31
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -235,10 +235,15 @@ public final class DcTracker extends DcTrackerBase {
        if (DBG) log(LOG_TAG + ".constructor");

        if (p.getPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
            final boolean fetchApnFromOmhCard = p.getContext().getResources().
                    getBoolean(com.android.internal.R.bool.config_fetch_apn_from_omh_card);
            log(LOG_TAG + " fetchApnFromOmhCard: " + fetchApnFromOmhCard);
            if (fetchApnFromOmhCard) {
                mOmhApt = new CdmaApnProfileTracker((CDMAPhone)p);
                mOmhApt.registerForModemProfileReady(this,
                        DctConstants.EVENT_MODEM_DATA_PROFILE_READY, null);
            }
        }

        mDataConnectionTracker = this;
        update();