Merge "third part apps can disable the secret lockscreen"
This commit is contained in:
@ -773,6 +773,11 @@ public class KeyguardViewMediator extends SystemUI {
|
|||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")");
|
if (DEBUG) Log.d(TAG, "setKeyguardEnabled(" + enabled + ")");
|
||||||
|
|
||||||
|
if (isSecure()) {
|
||||||
|
Log.d(TAG, "current mode is SecurityMode, ignore hide keyguard");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
mExternallyEnabled = enabled;
|
mExternallyEnabled = enabled;
|
||||||
|
|
||||||
if (!enabled && mShowing) {
|
if (!enabled && mShowing) {
|
||||||
|
Reference in New Issue
Block a user