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

Commit aff58c52 authored by Mengjun Leng's avatar Mengjun Leng Committed by Steve Kondik
Browse files

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

Change-Id: Ie180e03562a3f4da971415f04dbaade507232567
CRs-Fixed: 748148
parent cd50fa78
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();