summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2015-06-24 13:17:56 -0400
committerSelim Cinek <cinek@google.com>2015-06-24 13:17:56 -0400
commit245273ec8dd33f10f2682f140057ea0e5b270ef8 (patch)
tree13741593a3d20d7722e4d7e6c01a8f7c9e20f3ef
parentedd32b881780e52b4ecc43f8df3b6b091e70a863 (diff)
downloadframeworks_base-245273ec8dd33f10f2682f140057ea0e5b270ef8.zip
frameworks_base-245273ec8dd33f10f2682f140057ea0e5b270ef8.tar.gz
frameworks_base-245273ec8dd33f10f2682f140057ea0e5b270ef8.tar.bz2
Fixed an inconsistency when booting up with SIMPIn
The lockscreen was skipped when the security mode was swipe, which is inconsistent with the normal bootup behavior. Bug: 21850021 Change-Id: I2c59b1428d489fad566097771ca449ba667f34d2
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
index f529ac0..23bd238 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardSecurityContainer.java
@@ -329,7 +329,9 @@ public class KeyguardSecurityContainer extends FrameLayout implements KeyguardSe
case SimPuk:
// Shortcut for SIM PIN/PUK to go to directly to user's security screen or home
SecurityMode securityMode = mSecurityModel.getSecurityMode();
- if (securityMode != SecurityMode.None) {
+ if (securityMode != SecurityMode.None
+ || !mLockPatternUtils.isLockScreenDisabled(
+ KeyguardUpdateMonitor.getCurrentUser())) {
showSecurityScreen(securityMode);
} else {
finish = true;