Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349 am: 617bd39465
am: 01186abc81
* commit '01186abc81c721c84a5d588bb7183d811d77f99c':
Revert "Don't dispatch when non-interactive and the display is off."
This commit is contained in:
@@ -5318,11 +5318,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
|
||||
}
|
||||
|
||||
private boolean shouldDispatchInputWhenNonInteractive() {
|
||||
if (mDisplay == null || mDisplay.getState() == Display.STATE_OFF) {
|
||||
return false;
|
||||
}
|
||||
// Send events to keyguard while the screen is on and it's showing.
|
||||
if (isKeyguardShowingAndNotOccluded()) {
|
||||
// Send events to keyguard while the screen is on.
|
||||
if (isKeyguardShowingAndNotOccluded() && mDisplay != null
|
||||
&& mDisplay.getState() != Display.STATE_OFF) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user