Merge "Disable "SIM card lock" when the SIM card is PUK-blocked"

This commit is contained in:
Treehugger Robot
2022-05-10 17:16:13 +00:00
committed by Gerrit Code Review

View File

@@ -95,7 +95,8 @@ public class SimLockPreferenceController extends BasePreferenceController {
for (SubscriptionInfo subInfo : subInfoList) {
final int simState = mTelephonyManager.getSimState(subInfo.getSimSlotIndex());
if ((simState != TelephonyManager.SIM_STATE_ABSENT)
&& (simState != TelephonyManager.SIM_STATE_UNKNOWN)) {
&& (simState != TelephonyManager.SIM_STATE_UNKNOWN)
&& (simState != TelephonyManager.SIM_STATE_PERM_DISABLED)) {
return true;
}
}