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

Commit 394d54fb authored by Sean Stout's avatar Sean Stout Committed by Automerger Merge Worker
Browse files

Merge "Fix screen not turning off correctly." into sc-dev am: 1d0ef86d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14298099

Change-Id: Ic24a2ea34cbd705c1f2190d5007d1d3ca5fb7f40
parents 7c20f12b 1d0ef86d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2957,8 +2957,7 @@ public final class PowerManagerService extends SystemService
                // Group has been removed.
                return;
            }
            // TODO (b/175764708): Support per-display doze.
            wakefulness = getWakefulnessLocked();
            wakefulness = mDisplayGroupPowerStateMapper.getWakefulnessLocked(groupId);
            if ((wakefulness == WAKEFULNESS_DREAMING || wakefulness == WAKEFULNESS_DOZING) &&
                    mDisplayGroupPowerStateMapper.isSandmanSummoned(groupId)
                    && mDisplayGroupPowerStateMapper.isReady(groupId)) {
@@ -3100,6 +3099,7 @@ public final class PowerManagerService extends SystemService
     * Returns true if the device is allowed to doze in its current state.
     */
    private boolean canDozeLocked() {
        // TODO (b/175764708): Support per-display doze.
        return getWakefulnessLocked() == WAKEFULNESS_DOZING;
    }