Skip to content

Commit 9fa1ada

Browse files
author
Jim Miller
committed
Fix 5497305: Make sure we show SIM unlock when "None" is selected
Previously the code ignored SIM state when lockscreen was set to "None." It now properly accounts for the SIM state when deciding to show. Change-Id: I272348c1a21b57ac146910850ea3db3adef0227c
1 parent af67522 commit 9fa1ada

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,16 +616,16 @@ private void doKeyguardLocked() {
616616
final IccCard.State state = mUpdateMonitor.getSimState();
617617
final boolean lockedOrMissing = state.isPinLocked()
618618
|| ((state == IccCard.State.ABSENT
619-
|| state == IccCard.State.PERM_DISABLED)
620-
&& requireSim);
619+
|| state == IccCard.State.PERM_DISABLED)
620+
&& requireSim);
621621

622622
if (!lockedOrMissing && !provisioned) {
623623
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because device isn't provisioned"
624624
+ " and the sim is not locked or missing");
625625
return;
626626
}
627627

628-
if (mLockPatternUtils.isLockScreenDisabled()) {
628+
if (mLockPatternUtils.isLockScreenDisabled() && !lockedOrMissing) {
629629
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off");
630630
return;
631631
}

0 commit comments

Comments
 (0)