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

Commit 93cf3e34 authored by Tej Singh's avatar Tej Singh
Browse files

Bug fix for device idle mode light

Before, 'adb shell dumpsys deviceidle force-idle light' would
always fail because it would call stepIdleStateLocked, which
does not affect mLightState. It now calls stepLightIdleStateLocked,
which modifies mLightState andputs the device in doze mode light.

Test: ran 'adb shell dumpsys deviceidle force-idle light' and
verified device entered doze mode light.

Change-Id: If8e6a1a0355c71c01727cdc64fa8e2ac82203e98
parent f92ace0a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2828,7 +2828,7 @@ public class DeviceIdleController extends SystemService
                        becomeInactiveIfAppropriateLocked();
                        int curLightState = mLightState;
                        while (curLightState != LIGHT_STATE_IDLE) {
                            stepIdleStateLocked("s:shell");
                            stepLightIdleStateLocked("s:shell");
                            if (curLightState == mLightState) {
                                pw.print("Unable to go light idle; stopped at ");
                                pw.println(lightStateToString(mLightState));