Fix power widget brightness.

If the auto-brightness is cleared, the brightness will drop to 0, so we
need to set it again.
This commit is contained in:
Ken Shirriff
2009-09-29 12:40:45 -07:00
parent 5928da682a
commit d80d19996a

View File

@@ -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) {