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

Unverified Commit cc7cdfc2 authored by Steve Kondik's avatar Steve Kondik Committed by Michael Bestas
Browse files

power: Disable keyboard/button lights while dozing/dreaming

 * With hardkeys and doze mode enabled, entering suspend results in
   an epic battle over the lights. It's a bad situation. Disable
   them when we're sleepy.

Change-Id: I7f1fc35a1573717d1ea101a07c4171d6f66d1553
parent 8045b04b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1772,7 +1772,7 @@ public final class PowerManagerService extends SystemService
                final boolean userInactiveOverride = mUserInactiveOverrideFromWindowManager;

                mUserActivitySummary = 0;
                if (mLastUserActivityTime >= mLastWakeTime) {
                if (mWakefulness == WAKEFULNESS_AWAKE && mLastUserActivityTime >= mLastWakeTime) {
                    nextTimeout = mLastUserActivityTime
                            + screenOffTimeout - screenDimDuration;
                    if (now < nextTimeout) {