Revert "Don\'t dispatch when non-interactive and the display is off."
am: f2b9b2d85a
* commit 'f2b9b2d85ae1b48896ad6b685de4cda8fab1c8fb':
Revert "Don't dispatch when non-interactive and the display is off."
This commit is contained in:
@@ -5265,11 +5265,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean shouldDispatchInputWhenNonInteractive() {
|
private boolean shouldDispatchInputWhenNonInteractive() {
|
||||||
if (mDisplay == null || mDisplay.getState() == Display.STATE_OFF) {
|
// Send events to keyguard while the screen is on.
|
||||||
return false;
|
if (isKeyguardShowingAndNotOccluded() && mDisplay != null
|
||||||
}
|
&& 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