Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01186abc authored by Joe LaPenna's avatar Joe LaPenna Committed by android-build-merger
Browse files

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

Revert "Don\'t dispatch when non-interactive and the display is off." am: f2b9b2d8 am: f7aceb60 am: 2900dc23
am: 617bd394

* commit '617bd394':
  Revert "Don't dispatch when non-interactive and the display is off."
parents 69e4ce3a 617bd394
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -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;
        }