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

Commit 617bd394 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: f2b9b2d8 am: f7aceb60

am: 2900dc23

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