summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/settings/SecuritySettings.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java
index 88a2d33..8196d0b 100644
--- a/src/com/android/settings/SecuritySettings.java
+++ b/src/com/android/settings/SecuritySettings.java
@@ -201,10 +201,9 @@ public class SecuritySettings extends SettingsPreferenceFragment
// Append the rest of the settings
addPreferencesFromResource(R.xml.security_settings_misc);
- // Do not display SIM lock for CDMA phone
+ // Do not display SIM lock for devices without an Icc card
TelephonyManager tm = TelephonyManager.getDefault();
- if ((TelephonyManager.PHONE_TYPE_CDMA == tm.getCurrentPhoneType()) &&
- (tm.getLteOnCdmaMode() != Phone.LTE_ON_CDMA_TRUE)) {
+ if (!tm.hasIccCard()) {
root.removePreference(root.findPreference(KEY_SIM_LOCK));
} else {
// Disable SIM lock if sim card is missing or unknown