diff options
Diffstat (limited to 'src/com/android/settings/SecuritySettings.java')
-rw-r--r-- | src/com/android/settings/SecuritySettings.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/settings/SecuritySettings.java b/src/com/android/settings/SecuritySettings.java index 9b7b0cf..ab39689 100644 --- a/src/com/android/settings/SecuritySettings.java +++ b/src/com/android/settings/SecuritySettings.java @@ -111,7 +111,6 @@ public class SecuritySettings extends SettingsPreferenceFragment private static final boolean ONLY_ONE_TRUST_AGENT = true; private DevicePolicyManager mDPM; - private SubscriptionManager mSubscriptionManager; private ChooseLockSettingsHelper mChooseLockSettingsHelper; private LockPatternUtils mLockPatternUtils; @@ -371,10 +370,9 @@ public class SecuritySettings extends SettingsPreferenceFragment /* Return true if a SIM is ready for locking. * TODO: consider adding to TelephonyManager or SubscritpionManasger. */ - private boolean isSimReady() { + private static boolean isSimReady() { int simState = TelephonyManager.SIM_STATE_UNKNOWN; - final List<SubscriptionInfo> subInfoList = - mSubscriptionManager.getActiveSubscriptionInfoList(); + final List<SubscriptionInfo> subInfoList = SubscriptionManager.getActiveSubscriptionInfoList(); if (subInfoList != null) { for (SubscriptionInfo subInfo : subInfoList) { simState = TelephonyManager.getDefault().getSimState(subInfo.getSimSlotIndex()); |