From 0361c7b4c0c7449370fee40d891b167428e69c8f Mon Sep 17 00:00:00 2001 From: tom hsu Date: Tue, 23 Feb 2021 16:14:47 +0800 Subject: [PATCH] Only default APN type can make preference selectable. - Current design is only to check mms type, but if there are other APN types group in one apn settings, it will show the radio button and the user can see the radio button and select it. - Improvement: Only make APN setting with defalut APN type be able to be selected. - https://screenshot.googleplex.com/8pfQinjya2NJWoV Bug: 180475805 Test: Maunal test with ATT SIM. Change-Id: Ic14121d7ce2a53b0f883a0637fc390c2aa4dd1d7 Merged-In: Iae6943971c0cc6d31dc0e9d4dd97e850117adbfd --- src/com/android/settings/network/ApnSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/network/ApnSettings.java b/src/com/android/settings/network/ApnSettings.java index f7617fc1fd0..477d85dc040 100755 --- a/src/com/android/settings/network/ApnSettings.java +++ b/src/com/android/settings/network/ApnSettings.java @@ -342,7 +342,7 @@ public class ApnSettings extends RestrictedSettingsFragment pref.setSummary(apn); } - final boolean selectable = ((type == null) || !type.equals("mms")); + final boolean selectable = ((type == null) || type.contains("default")); pref.setSelectable(selectable); if (selectable) { if ((mSelectedKey != null) && mSelectedKey.equals(key)) {