summaryrefslogtreecommitdiffstats
path: root/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
diff options
context:
space:
mode:
Diffstat (limited to 'policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java')
-rw-r--r--policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
index af4e49e..e09c2c2 100644
--- a/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
+++ b/policy/src/com/android/internal/policy/impl/KeyguardViewMediator.java
@@ -634,8 +634,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
int defValue=(CmSystem.getDefaultBool(mContext, CmSystem.CM_DEFAULT_DISABLE_LOCKSCREEN) ? 1 : 0);
boolean disableLockscreen=(Settings.System.getInt(mContext.getContentResolver(),
Settings.System.LOCKSCREEN_DISABLED, defValue) == 1);
- if(disableLockscreen)
- return;
+
// if another app is disabling us, don't show
if (!mExternallyEnabled) {
if (DEBUG) Log.d(TAG, "doKeyguard: not showing because externally disabled");
@@ -666,9 +665,11 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
return;
}
- if (DEBUG)
- Log.d(TAG, "doKeyguard: showing the applicable keyguard screen");
- showLocked(handlerMessage);
+ if (!disableLockscreen || state.isPinLocked()) {
+ if (DEBUG)
+ Log.d(TAG, "doKeyguard: showing the applicable keyguard screen");
+ showLocked(handlerMessage);
+ }
}
}