diff options
author | Danny Baumann <dannybaumann@web.de> | 2013-03-31 04:40:14 -0700 |
---|---|---|
committer | Gerrit Code Review <gerrit@cyanogenmod.org> | 2013-03-31 04:40:14 -0700 |
commit | 31a8a13f19a128630e67da22768c338446713b7d (patch) | |
tree | 3f7f39445c6b4131a2134a5dfaa466c743f36865 /src/com/android/settings/cyanogenmod | |
parent | 0deb0104eea19085bc68b42f128b3e9792564abe (diff) | |
parent | f2714e4ef5283c32360c3f98eb995c553094821b (diff) | |
download | packages_apps_settings-31a8a13f19a128630e67da22768c338446713b7d.zip packages_apps_settings-31a8a13f19a128630e67da22768c338446713b7d.tar.gz packages_apps_settings-31a8a13f19a128630e67da22768c338446713b7d.tar.bz2 |
Merge "Settings: fix incorrect value in autobrightness adjustment" into cm-10.1
Diffstat (limited to 'src/com/android/settings/cyanogenmod')
-rw-r--r-- | src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java b/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java index 3f93afc..f9b6e19 100644 --- a/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java +++ b/src/com/android/settings/cyanogenmod/AutoBrightnessCustomizeDialog.java @@ -504,10 +504,10 @@ public class AutoBrightnessCustomizeDialog extends AlertDialog if (progress < minValue) { seekBar.setProgress(minValue); - return; + progress = minValue; } else if (progress > maxValue) { seekBar.setProgress(maxValue); - return; + progress = maxValue; } getItem(pos).backlight = Math.round(progressToBrightness(progress)); |