Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d85a

am: f7aceb60e3

* commit 'f7aceb60e3e0d6ec611b3fa2dd64e6e4e1196f4c':
  Revert "Don't dispatch when non-interactive and the display is off."
This commit is contained in:
Joe LaPenna
2015-11-17 22:41:46 +00:00
committed by android-build-merger

View File

@@ -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;
} }