summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio López <turl@tuxfamily.org>2012-03-29 13:06:44 +0000
committerrmcc@arcee-kang1 <cyanogenmod@cerqueira.org>2012-03-30 15:13:34 +0100
commit06bb5ef0f2509a00b65539d48fa6a96569f14bd5 (patch)
treef88b4ff9e95213e217004b1f78f47b807a6cc9bc
parente952e69b3177d3324696901a644160d4b24423be (diff)
downloadframeworks_base-06bb5ef0f2509a00b65539d48fa6a96569f14bd5.zip
frameworks_base-06bb5ef0f2509a00b65539d48fa6a96569f14bd5.tar.gz
frameworks_base-06bb5ef0f2509a00b65539d48fa6a96569f14bd5.tar.bz2
policy: fix "Skip on security" functionality
It was only working for fingerprint and pattern lockscreens. Change-Id: Ib4d4d28f80256fbe669aeb5681ef6056b8f5f3d4
-rw-r--r--policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
index 8e7a276..7f79cc2 100644
--- a/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
+++ b/policy/src/com/android/internal/policy/impl/LockPatternKeyguardView.java
@@ -775,12 +775,9 @@ public class LockPatternKeyguardView extends KeyguardViewBase {
if (stuckOnLockScreenBecauseSimMissing() || (simState == IccCard.State.PUK_REQUIRED)) {
return Mode.LockScreen;
} else {
- // Show LockScreen first for any screen other than Pattern unlock and Finger unlock.
- final boolean usingLockPattern = mLockPatternUtils.getKeyguardStoredPasswordQuality()
- == DevicePolicyManager.PASSWORD_QUALITY_SOMETHING;
- final boolean usingLockFinger = mLockPatternUtils.getKeyguardStoredPasswordQuality()
- == DevicePolicyManager.PASSWORD_QUALITY_FINGER;
- if (mLockscreenDisableOnSecurity && isSecure() && (usingLockPattern || usingLockFinger) || (simState == IccCard.State.PIN_REQUIRED)) {
+ // Disable LockScreen if security lockscreen is active and option in CMParts set
+ // Also don't show the slider lockscreen if pin is required
+ if (mLockscreenDisableOnSecurity && isSecure() || (simState == IccCard.State.PIN_REQUIRED)) {
return Mode.UnlockScreen;
} else {
return Mode.LockScreen;