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

Commit 088a997d authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am 81cc19cf: am 236e174a: am 0575b185: Merge "Add a temporary hack to report...

am 81cc19cf: am 236e174a: am 0575b185: Merge "Add a temporary hack to report screen on while dozing." into klp-modular-dev

* commit '81cc19cf':
  Add a temporary hack to report screen on while dozing.
parents de69575d 81cc19cf
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1816,7 +1816,12 @@ public final class PowerManagerService extends com.android.server.SystemService

    private boolean isScreenOnInternal() {
        synchronized (mLock) {
            return isScreenOnLocked();
            // XXX This is a temporary hack to let certain parts of the system pretend the
            // screen is still on even when dozing and we would normally want to report
            // screen off.  Will be removed when the window manager is modified to use
            // the true blanking state of the display.
            return isScreenOnLocked()
                    || mWakefulness == WAKEFULNESS_DOZING;
        }
    }