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

Commit f2b9b2d8 authored by Joe LaPenna's avatar Joe LaPenna
Browse files

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

This reverts commit 2ccf0c8e.

BUG: 22422588
BUG: 25067918

Change-Id: I916c8bb19cd6a73c0be4bd3a0e3112938651e775
parent 41ef58be
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;
        }
        }