Skip to content

Commit 1dce37b

Browse files
Jim MillerAndroid (Google) Code Review
authored andcommitted
Merge "Fix 5497305: Make sure we show SIM unlock when "None" is selected" into ics-mr0
2 parents 4b6353e + 9fa1ada commit 1dce37b

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)