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

* commit '40c4021a70c56bcc4d6f6569d795dff52ab4e369':
  third part apps can disable the secret lockscreen
This commit is contained in:
Jim Miller
2015-04-07 22:58:53 +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) {