am acfc96f1
: am 53dcdeeb
: Don\'t restore old brightness when cancelling brightness dialog in automatic mode.
Merge commit 'acfc96f1504ffa01fcdf78e9ff3c91917a9401c1' into eclair-mr2-plus-aosp * commit 'acfc96f1504ffa01fcdf78e9ff3c91917a9401c1': Don't restore old brightness when cancelling brightness dialog in automatic mode.
This commit is contained in:
@@ -120,8 +120,9 @@ public class BrightnessPreference extends SeekBarPreference implements
|
||||
if (mAutomaticAvailable) {
|
||||
setMode(mOldAutomatic);
|
||||
}
|
||||
// brightness needs to be restored after restoring ALS mode
|
||||
setBrightness(mOldBrightness);
|
||||
if (!mAutomaticAvailable || mOldAutomatic == 0) {
|
||||
setBrightness(mOldBrightness);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user