Merge "Don't dispatch when non-interactive and the display is off." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
eb7e3d7e45
@@ -5229,9 +5229,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean shouldDispatchInputWhenNonInteractive() {
|
private boolean shouldDispatchInputWhenNonInteractive() {
|
||||||
// Send events to keyguard while the screen is on.
|
if (mDisplay == null || mDisplay.getState() == Display.STATE_OFF) {
|
||||||
if (isKeyguardShowingAndNotOccluded() && mDisplay != null
|
return false;
|
||||||
&& mDisplay.getState() != Display.STATE_OFF) {
|
}
|
||||||
|
// Send events to keyguard while the screen is on and it's showing.
|
||||||
|
if (isKeyguardShowingAndNotOccluded()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user