Merge "third part apps can disable the secret lockscreen"

This commit is contained in:
Jim Miller
2015-04-07 22:41:17 +00:00
committed by Gerrit Code Review

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) {