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

Commit 2103fec4 authored by Steve Kondik's avatar Steve Kondik
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 40c2abc1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1679,7 +1679,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) {