Enable auto-brightness adjustment feature with system prop.

This feature is experimental and disabled by default.

Change-Id: I9c3c77d6d207ceec65e0babc7915db8d439d5da2
This commit is contained in:
Jeff Brown
2012-09-08 15:12:19 -07:00
parent d4b711e603
commit eda43176e3

View File

@@ -39,7 +39,8 @@ import android.widget.SeekBar;
public class BrightnessPreference extends SeekBarDialogPreference implements
SeekBar.OnSeekBarChangeListener, CheckBox.OnCheckedChangeListener {
// If true, enables the use of the screen auto-brightness adjustment setting.
private static final boolean USE_SCREEN_AUTO_BRIGHTNESS_ADJUSTMENT = false;
private static final boolean USE_SCREEN_AUTO_BRIGHTNESS_ADJUSTMENT =
PowerManager.useScreenAutoBrightnessAdjustmentFeature();
private final int mScreenBrightnessMinimum;
private final int mScreenBrightnessMaximum;