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

Commit b1b664a2 authored by James Peterson's avatar James Peterson
Browse files

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.

Change-Id: I3f9e44dec8e3deb9ecb2aeb0f775383bbd7b3d57
parent f35dbb8a
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));