diff options
author | Ken Shirriff <kens@google.com> | 2009-09-29 12:40:45 -0700 |
---|---|---|
committer | Ken Shirriff <kens@google.com> | 2009-09-29 12:40:45 -0700 |
commit | d80d19996a4b9ec3bfe1a9127af0df154f0e6770 (patch) | |
tree | c20dbffbcca1ad624a615642adcb979f2a393024 /src | |
parent | 5928da682a31f3375a206d551c478d76437bb7cf (diff) | |
download | packages_apps_settings-d80d19996a4b9ec3bfe1a9127af0df154f0e6770.zip packages_apps_settings-d80d19996a4b9ec3bfe1a9127af0df154f0e6770.tar.gz packages_apps_settings-d80d19996a4b9ec3bfe1a9127af0df154f0e6770.tar.bz2 |
Fix power widget brightness.
If the auto-brightness is cleared, the brightness will drop to 0, so we
need to set it again.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/widget/SettingsAppWidgetProvider.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/settings/widget/SettingsAppWidgetProvider.java b/src/com/android/settings/widget/SettingsAppWidgetProvider.java index 37896bf..d652e80 100644 --- a/src/com/android/settings/widget/SettingsAppWidgetProvider.java +++ b/src/com/android/settings/widget/SettingsAppWidgetProvider.java @@ -397,6 +397,8 @@ public class SettingsAppWidgetProvider extends AppWidgetProvider { Settings.System.putInt(context.getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE, 0); + // Set it again in case auto brightness was on + power.setBacklightBrightness(brightness); } } } catch (RemoteException e) { |