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

Commit a32c2bb9 authored by FangYunong's avatar FangYunong Committed by Linux Build Service Account
Browse files

Settings: hide ims and dun APNs.

Some carrier may have specifiic type of APN (such as pcweb, ims, ota)
that need to be invisible to users. This feature is to satisfy this
requirement. nporting

CRs-Fixed: 1039259
Change-Id: I59c487ca536753ab1c3d0525af7948b329aa8ec1
parent 7636a1a3
Loading
Loading
Loading
Loading

res/values/config.xml

100755 → 100644
+2 −0
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@
    <!-- Dashboard number of columns -->
    <integer name="dashboard_num_columns">1</integer>

    <!-- Whether to hide IMS and DUN Apns -->
    <bool name="config_regional_hide_ims_and_dun_apns">false</bool>
    <!-- Carrier_enabled editable -->
    <bool name="config_allow_edit_carrier_enabled" translatable="false">false</bool>

+4 −0
Original line number Diff line number Diff line
@@ -297,6 +297,10 @@ public class ApnSettings extends RestrictedSettingsFragment implements
            }
        }

        if(getResources().getBoolean(R.bool.config_regional_hide_ims_and_dun_apns)){
            where.append(" AND type <>\"" + PhoneConstants.APN_TYPE_DUN + "\"");
            where.append(" AND type <>\"" + PhoneConstants.APN_TYPE_IMS + "\"");
        }
        if (mHideImsApn) {
            where.append(" AND NOT (type='ims')");
        }