summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/cyanogenmod
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2013-03-31 04:40:14 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2013-03-31 04:40:14 -0700
commit31a8a13f19a128630e67da22768c338446713b7d (patch)
tree3f7f39445c6b4131a2134a5dfaa466c743f36865 /src/com/android/settings/cyanogenmod
parent0deb0104eea19085bc68b42f128b3e9792564abe (diff)
parentf2714e4ef5283c32360c3f98eb995c553094821b (diff)
downloadpackages_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.java4
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));