Hide emergency APN in user settings

Emergency APN types is not something for the end user
and should not be possible to edit.

Test: Add an emergency APN and check in Settings
Bug: 207626003
Change-Id: I866eb98dce410218bc76ade3201a2a2abfc959e7
This commit is contained in:
Mattias Nilsson
2021-11-22 22:44:01 +01:00
committed by Mattias Nilsson
parent c2647199ce
commit 6a56b4a8e6

View File

@@ -322,6 +322,8 @@ public class ApnSettings extends RestrictedSettingsFragment
final StringBuilder where = final StringBuilder where =
new StringBuilder("NOT (type='ia' AND (apn=\"\" OR apn IS NULL)) AND " new StringBuilder("NOT (type='ia' AND (apn=\"\" OR apn IS NULL)) AND "
+ "user_visible!=0"); + "user_visible!=0");
// Remove Emergency type, users should not mess with that
where.append(" AND NOT (type='emergency')");
if (mHideImsApn) { if (mHideImsApn) {
where.append(" AND NOT (type='ims')"); where.append(" AND NOT (type='ims')");