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

Commit 5a63233c authored by James Peterson's avatar James Peterson
Browse files

LCD Brightness - continued change to allow lcd dimming in both docked

and undocked modes.  It does not make sence to not allow screen to dim
in either instance.
Better options are welcome.

Change-Id: I501ec96fce64b9629a198ab713858eabee602600
parent b1b664a2
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2699,12 +2699,7 @@ public class PowerManagerService extends IPowerManager.Stub
        if (mLightSensorValue != value) {
            mLightSensorValue = value;
            if ((mPowerState & BATTERY_LOW_BIT) == 0) {
                // use maximum light sensor value seen since screen went on for LCD to avoid flicker
                // we only do this if we are docked, since lighting should be stable when
                // stationary in a dock.
                int lcdValue = getAutoBrightnessValue(
                        (!mIsDocked ? value : mHighestLightSensorValue),
                        mLastLcdValue,
                int lcdValue = getAutoBrightnessValue(value, mLastLcdValue,
                        (mCustomLightEnabled ? mCustomLightLevels : mAutoBrightnessLevels),
                        (mCustomLightEnabled ? mCustomLcdValues : mLcdBacklightValues));