Loading res/values/bools.xml +2 −0 Original line number Diff line number Diff line Loading @@ -106,4 +106,6 @@ <bool name="config_hide_mms_enable">false</bool> <!-- show pop up notification for turn off wifi begin --> <bool name="hotspot_show_turn_off_wifi_dialog">false</bool> <!-- Whether to enable the default ipv4/v6 for creating new APN --> <bool name="config_default_apn_for_new">false</bool> </resources> src/com/android/settings/ApnEditor.java +9 −3 Original line number Diff line number Diff line Loading @@ -160,6 +160,8 @@ public class ApnEditor extends SettingsPreferenceFragment private static final int MVNO_TYPE_INDEX = 21; private static final int MVNO_MATCH_DATA_INDEX = 22; private static final int DEFAULT_IPV4V6_INDEX = 2; @Override public void onCreate(Bundle icicle) { Loading Loading @@ -318,9 +320,13 @@ public class ApnEditor extends SettingsPreferenceFragment } else { mAuthType.setValue(null); } if (mNewApn && getResources().getBoolean(R.bool.config_default_apn_for_new)) { mProtocol.setValueIndex(DEFAULT_IPV4V6_INDEX); mRoamingProtocol.setValueIndex(DEFAULT_IPV4V6_INDEX); } else { mProtocol.setValue(mCursor.getString(PROTOCOL_INDEX)); mRoamingProtocol.setValue(mCursor.getString(ROAMING_PROTOCOL_INDEX)); } mCarrierEnabled.setChecked(mCursor.getInt(CARRIER_ENABLED_INDEX)==1); mBearerInitialVal = mCursor.getInt(BEARER_INDEX); Loading Loading
res/values/bools.xml +2 −0 Original line number Diff line number Diff line Loading @@ -106,4 +106,6 @@ <bool name="config_hide_mms_enable">false</bool> <!-- show pop up notification for turn off wifi begin --> <bool name="hotspot_show_turn_off_wifi_dialog">false</bool> <!-- Whether to enable the default ipv4/v6 for creating new APN --> <bool name="config_default_apn_for_new">false</bool> </resources>
src/com/android/settings/ApnEditor.java +9 −3 Original line number Diff line number Diff line Loading @@ -160,6 +160,8 @@ public class ApnEditor extends SettingsPreferenceFragment private static final int MVNO_TYPE_INDEX = 21; private static final int MVNO_MATCH_DATA_INDEX = 22; private static final int DEFAULT_IPV4V6_INDEX = 2; @Override public void onCreate(Bundle icicle) { Loading Loading @@ -318,9 +320,13 @@ public class ApnEditor extends SettingsPreferenceFragment } else { mAuthType.setValue(null); } if (mNewApn && getResources().getBoolean(R.bool.config_default_apn_for_new)) { mProtocol.setValueIndex(DEFAULT_IPV4V6_INDEX); mRoamingProtocol.setValueIndex(DEFAULT_IPV4V6_INDEX); } else { mProtocol.setValue(mCursor.getString(PROTOCOL_INDEX)); mRoamingProtocol.setValue(mCursor.getString(ROAMING_PROTOCOL_INDEX)); } mCarrierEnabled.setChecked(mCursor.getInt(CARRIER_ENABLED_INDEX)==1); mBearerInitialVal = mCursor.getInt(BEARER_INDEX); Loading