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

Commit f2b35a1a authored by Nishanth Kumar Sirivolu's avatar Nishanth Kumar Sirivolu Committed by Linux Build Service Account
Browse files

Revert "Settings: Fix no preferred APN"

This reverts commit 145656a1c3104fa3eb7b0b12baa025c80ee0c38f

This change is not needed.

CRs-Fixed: 777710

Change-Id: Ic1c1bedf781dd0b2868f56859b099c497925f812
parent 101d60ed
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -244,7 +244,6 @@ public class ApnSettings extends RestrictedSettingsFragment implements
    }

    private void fillList() {
        boolean isSelectedKeyMatch = false;
        final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        final String mccmnc = mSubscriptionInfo == null ? ""
                : tm.getSimOperator(mSubscriptionInfo.getSubscriptionId());
@@ -343,8 +342,6 @@ public class ApnSettings extends RestrictedSettingsFragment implements
                if (selectable) {
                    if ((mSelectedKey != null) && mSelectedKey.equals(key)) {
                        pref.setChecked();
                        isSelectedKeyMatch = true;
                        Log.d(TAG, "find select key = " + mSelectedKey);
                    }
                    addApnToList(pref, mnoApnList, mvnoApnList, r, mvnoType, mvnoMatchData);
                } else {
@@ -364,15 +361,6 @@ public class ApnSettings extends RestrictedSettingsFragment implements
            for (Preference preference : mnoApnList) {
                apnList.addPreference(preference);
            }

            //if find no selectedKey, set the first one as selected key
            if (!isSelectedKeyMatch && apnList.getPreferenceCount() > 0) {
                ApnPreference pref = (ApnPreference) apnList.getPreference(0);
                pref.setChecked();
                setSelectedApnKey(pref.getKey());
                Log.d(TAG, "set key to  " +pref.getKey());
            }

            for (Preference preference : mnoMmsApnList) {
                apnList.addPreference(preference);
            }