Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a am: f7aceb60e3 am: 2900dc2349
am: 617bd39465
* commit '617bd39465dd0b77ed2cf353728c2fe97c371b17':
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