Loading src/com/android/settings/network/CellularSecurityPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll } if (mTelephonyManager == null) { Log.w(LOG_TAG, "Telephony manager not yet initialized"); mTelephonyManager = mContext.getSystemService(TelephonyManager.class); return CONDITIONALLY_UNAVAILABLE; } // Check there are valid SIM cards which can be displayed to the user, otherwise this Loading Loading @@ -184,7 +184,7 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll protected boolean areNotificationsEnabled() { if (mTelephonyManager == null) { Log.w(LOG_TAG, "Telephony manager not yet initialized"); mTelephonyManager = mContext.getSystemService(TelephonyManager.class); return false; } return mTelephonyManager.isNullCipherNotificationsEnabled() Loading Loading
src/com/android/settings/network/CellularSecurityPreferenceController.java +2 −2 Original line number Diff line number Diff line Loading @@ -75,7 +75,7 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll } if (mTelephonyManager == null) { Log.w(LOG_TAG, "Telephony manager not yet initialized"); mTelephonyManager = mContext.getSystemService(TelephonyManager.class); return CONDITIONALLY_UNAVAILABLE; } // Check there are valid SIM cards which can be displayed to the user, otherwise this Loading Loading @@ -184,7 +184,7 @@ public class CellularSecurityPreferenceController extends BasePreferenceControll protected boolean areNotificationsEnabled() { if (mTelephonyManager == null) { Log.w(LOG_TAG, "Telephony manager not yet initialized"); mTelephonyManager = mContext.getSystemService(TelephonyManager.class); return false; } return mTelephonyManager.isNullCipherNotificationsEnabled() Loading