summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2011-11-02 17:29:49 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-02 17:29:49 +0000
commit02829c30aec9b05b13c612c732dde2670af0c375 (patch)
tree85b2e262c45a3a3df7e5bfa3013fb8a1aa77c2a8 /policy
parent25ba325ad3b358aa5af603e7745088916d7fd40f (diff)
parent2272602032e5051d5067a7a95c741304468a81af (diff)
downloadframeworks_base-02829c30aec9b05b13c612c732dde2670af0c375.zip
frameworks_base-02829c30aec9b05b13c612c732dde2670af0c375.tar.gz
frameworks_base-02829c30aec9b05b13c612c732dde2670af0c375.tar.bz2
am 22726020: am 1dce37bd: Merge "Fix 5497305: Make sure we show SIM unlock when "None" is selected" into ics-mr0
* commit '2272602032e5051d5067a7a95c741304468a81af': Fix 5497305: Make sure we show SIM unlock when "None" is selected
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
index 0471dfe..c802bc1 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -616,8 +616,8 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
final IccCard.State state = mUpdateMonitor.getSimState();
final boolean lockedOrMissing = state.isPinLocked()
|| ((state == IccCard.State.ABSENT
- || state == IccCard.State.PERM_DISABLED)
- && requireSim);
+ || state == IccCard.State.PERM_DISABLED)
+ && requireSim);
if (!lockedOrMissing && !provisioned) {
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because device isn't provisioned"
@@ -625,7 +625,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
return;
}
- if (mLockPatternUtils.isLockScreenDisabled()) {
+ if (mLockPatternUtils.isLockScreenDisabled() && !lockedOrMissing) {
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because lockscreen is off");
return;
}