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

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

Merge "Corrected error in screen backlight level This allows for backlight to...

Merge "Corrected error in screen backlight level This allows for backlight to decrease when changing to dimmer location when phone is not connected to a dock.  Previouos setting had reversed." into ics
parents 1b658a4d b1b664a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2700,10 +2700,10 @@ public class PowerManagerService extends IPowerManager.Stub
            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 undocked, since lighting should be stable when
                // we only do this if we are docked, since lighting should be stable when
                // stationary in a dock.
                int lcdValue = getAutoBrightnessValue(
                        (mIsDocked ? value : mHighestLightSensorValue),
                        (!mIsDocked ? value : mHighestLightSensorValue),
                        mLastLcdValue,
                        (mCustomLightEnabled ? mCustomLightLevels : mAutoBrightnessLevels),
                        (mCustomLightEnabled ? mCustomLcdValues : mLcdBacklightValues));