summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/BrightnessPreference.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-09-08 15:12:19 -0700
committerJeff Brown <jeffbrown@google.com>2012-09-08 15:12:19 -0700
commiteda43176e3f1fd7dcdd481e4e759c62450f96c88 (patch)
tree5f8cb35bc77b9a63c93b137922920088e96be215 /src/com/android/settings/BrightnessPreference.java
parentd4b711e60361a2a05ffa11a4199cceea54d3ea96 (diff)
downloadpackages_apps_settings-eda43176e3f1fd7dcdd481e4e759c62450f96c88.zip
packages_apps_settings-eda43176e3f1fd7dcdd481e4e759c62450f96c88.tar.gz
packages_apps_settings-eda43176e3f1fd7dcdd481e4e759c62450f96c88.tar.bz2
Enable auto-brightness adjustment feature with system prop.
This feature is experimental and disabled by default. Change-Id: I9c3c77d6d207ceec65e0babc7915db8d439d5da2
Diffstat (limited to 'src/com/android/settings/BrightnessPreference.java')
-rw-r--r--src/com/android/settings/BrightnessPreference.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/settings/BrightnessPreference.java b/src/com/android/settings/BrightnessPreference.java
index 858d50f..2cf6b43 100644
--- a/src/com/android/settings/BrightnessPreference.java
+++ b/src/com/android/settings/BrightnessPreference.java
@@ -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;