am e2e945a8: am 40c4021a: Merge "third part apps can disable the secret lockscreen"

* commit 'e2e945a8871310ab900dbe33b587e522446b9a6d':
  third part apps can disable the secret lockscreen
This commit is contained in:
Jim Miller
2015-04-07 23:08:05 +00:00
committed by Android Git Automerger

View File

@@ -773,6 +773,11 @@ public class KeyguardViewMediator extends SystemUI {
synchronized (this) {
if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")");
if (isSecure()) {
Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard");
return;
}
mExternallyEnabled = enabled;
if (!enabled && mShowing) {