Skip to content

Commit

Permalink
Merge "LCD Brightness - continued change to allow lcd dimming in both…
Browse files Browse the repository at this point in the history
… docked and undocked modes. It does not make sence to not allow screen to dim in either instance. Better options are welcome." into ics
  • Loading branch information
hyperb1iss authored and Gerrit Code Review committed Jan 14, 2012
2 parents aabc20c + 5a63233 commit dd89f7f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions services/java/com/android/server/PowerManagerService.java
Expand Up @@ -2699,12 +2699,7 @@ private void lightSensorChangedLocked(int value) {
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));

Expand Down

0 comments on commit dd89f7f

Please sign in to comment.