Merge "Don't wait keyguard drawn if device has no keyguard"
am: a6e5165b2c
Change-Id: I8e198596eaec74fb022530544adad8efa0aadf52
This commit is contained in:
@@ -6791,7 +6791,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
mWindowManagerDrawComplete = false;
|
||||
mScreenOnListener = screenOnListener;
|
||||
|
||||
if (mKeyguardDelegate != null) {
|
||||
if (mKeyguardDelegate != null && mKeyguardDelegate.hasKeyguard()) {
|
||||
mHandler.removeMessages(MSG_KEYGUARD_DRAWN_TIMEOUT);
|
||||
mHandler.sendEmptyMessageDelayed(MSG_KEYGUARD_DRAWN_TIMEOUT,
|
||||
getKeyguardDrawnTimeout());
|
||||
|
||||
@@ -235,6 +235,10 @@ public class KeyguardServiceDelegate {
|
||||
return false;
|
||||
}
|
||||
|
||||
public boolean hasKeyguard() {
|
||||
return mKeyguardState.deviceHasKeyguard;
|
||||
}
|
||||
|
||||
public boolean isInputRestricted() {
|
||||
if (mKeyguardService != null) {
|
||||
mKeyguardState.inputRestricted = mKeyguardService.isInputRestricted();
|
||||
|
||||
Reference in New Issue
Block a user