Merge "Turn off the screen if no security lock" into tm-dev
This commit is contained in:
@@ -1023,7 +1023,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
break;
|
||||
}
|
||||
case SHORT_PRESS_POWER_LOCK_OR_SLEEP: {
|
||||
if (keyguardOn()) {
|
||||
if (mKeyguardDelegate == null || !mKeyguardDelegate.hasKeyguard()
|
||||
|| !mKeyguardDelegate.isSecure(mCurrentUserId) || keyguardOn()) {
|
||||
sleepDefaultDisplayFromPowerButton(eventTime, 0);
|
||||
} else {
|
||||
lockNow(null /*options*/);
|
||||
|
||||
Reference in New Issue
Block a user