Skip to content

Commit

Permalink
Merge "Corrected error in screen backlight level This allows for back…
Browse files Browse the repository at this point in the history
…light to decrease when changing to dimmer location when phone is not connected to a dock. Previouos setting had reversed." into ics
  • Loading branch information
hyperb1iss authored and Gerrit Code Review committed Jan 8, 2012
2 parents 1b658a4 + b1b664a commit 3189d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/java/com/android/server/PowerManagerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2700,10 +2700,10 @@ private void lightSensorChangedLocked(int 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 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));
Expand Down

0 comments on commit 3189d01

Please sign in to comment.