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

Commit dd89f7fc authored by Steve Kondik's avatar Steve Kondik Committed by Gerrit Code Review
Browse files

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

Merge "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." into ics
parents aabc20c0 5a63233c
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));