am c46455ac
: Merge "Enable "APN roaming protocol" for all platforms"
* commit 'c46455ac7a2ad988700f975bb07558c8580bbe8e': Enable "APN roaming protocol" for all platforms
This commit is contained in:
@@ -167,15 +167,7 @@ public class ApnEditor extends PreferenceActivity
|
|||||||
mProtocol.setOnPreferenceChangeListener(this);
|
mProtocol.setOnPreferenceChangeListener(this);
|
||||||
|
|
||||||
mRoamingProtocol = (ListPreference) findPreference(KEY_ROAMING_PROTOCOL);
|
mRoamingProtocol = (ListPreference) findPreference(KEY_ROAMING_PROTOCOL);
|
||||||
// Only enable this on CDMA phones for now, since it may cause problems on other phone
|
mRoamingProtocol.setOnPreferenceChangeListener(this);
|
||||||
// types. (This screen is not normally accessible on CDMA phones, but is useful for
|
|
||||||
// testing.)
|
|
||||||
TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);
|
|
||||||
if (tm.getCurrentPhoneType() == PhoneConstants.PHONE_TYPE_CDMA) {
|
|
||||||
mRoamingProtocol.setOnPreferenceChangeListener(this);
|
|
||||||
} else {
|
|
||||||
getPreferenceScreen().removePreference(mRoamingProtocol);
|
|
||||||
}
|
|
||||||
|
|
||||||
mCarrierEnabled = (CheckBoxPreference) findPreference(KEY_CARRIER_ENABLED);
|
mCarrierEnabled = (CheckBoxPreference) findPreference(KEY_CARRIER_ENABLED);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user