diff options
author | Mike Lockwood <lockwood@android.com> | 2009-10-30 03:08:03 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-10-30 09:43:02 -0400 |
commit | 9878e86c452aff27e6d2d4a3673882eb1f5b6210 (patch) | |
tree | 9f2e430e9c16d42cd5f19c119db114639e46a00b /src/com/android/settings/BrightnessPreference.java | |
parent | dd45a47bde9cdb9c27cb3ac3529a34f9789782ec (diff) | |
download | packages_apps_settings-9878e86c452aff27e6d2d4a3673882eb1f5b6210.zip packages_apps_settings-9878e86c452aff27e6d2d4a3673882eb1f5b6210.tar.gz packages_apps_settings-9878e86c452aff27e6d2d4a3673882eb1f5b6210.tar.bz2 |
Avoid setting screen brightness when initializing brightness dialog in automatic mode.
Fixes bug b/2226257 (Brightness wonky)
Change-Id: Ibe1d06fc907960dcb6a70faa92e6c3a562016865
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'src/com/android/settings/BrightnessPreference.java')
-rw-r--r-- | src/com/android/settings/BrightnessPreference.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/settings/BrightnessPreference.java b/src/com/android/settings/BrightnessPreference.java index dbfa2f7..fe3b997 100644 --- a/src/com/android/settings/BrightnessPreference.java +++ b/src/com/android/settings/BrightnessPreference.java @@ -62,7 +62,6 @@ public class BrightnessPreference extends SeekBarPreference implements super.onBindDialogView(view); mSeekBar = getSeekBar(view); - mSeekBar.setOnSeekBarChangeListener(this); mSeekBar.setMax(MAXIMUM_BACKLIGHT - MINIMUM_BACKLIGHT); try { mOldBrightness = Settings.System.getInt(getContext().getContentResolver(), @@ -85,6 +84,7 @@ public class BrightnessPreference extends SeekBarPreference implements } else { mCheckBox.setVisibility(View.GONE); } + mSeekBar.setOnSeekBarChangeListener(this); } public void onProgressChanged(SeekBar seekBar, int progress, |