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

am: 2900dc2349

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

View File

@@ -5265,11 +5265,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;
}