Skip to content

Commit

Permalink
Fix initial state of notification light settings
Browse files Browse the repository at this point in the history
Settings assume the three options to be enabled but framework didn't
which resulted in users having to disable and enable them.

Fixes #4053

Change-Id: Ia05ba30fdd232bae215ade09a39774e6f5d290d8
  • Loading branch information
aleho committed Jul 11, 2011
1 parent 4037ded commit 9fc254c
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -534,19 +534,19 @@ public void update() {
updateNotificationPulse();
}
boolean blinkEnabled = Settings.System.getInt(resolver,
Settings.System.NOTIFICATION_LIGHT_BLINK, 0) != 0;
Settings.System.NOTIFICATION_LIGHT_BLINK, 1) == 1;
if (mNotificationBlinkEnabled != blinkEnabled) {
mNotificationBlinkEnabled = blinkEnabled;
updateGreenLight();
}
boolean alwaysOnEnabled = Settings.System.getInt(resolver,
Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON, 0) != 0;
Settings.System.NOTIFICATION_LIGHT_ALWAYS_ON, 1) == 1;
if (mNotificationAlwaysOnEnabled != alwaysOnEnabled) {
mNotificationAlwaysOnEnabled = alwaysOnEnabled;
updateGreenLight();
}
boolean chargingEnabled = Settings.System.getInt(resolver,
Settings.System.NOTIFICATION_LIGHT_CHARGING, 0) != 0;
Settings.System.NOTIFICATION_LIGHT_CHARGING, 1) == 1;
if (mNotificationChargingEnabled != chargingEnabled) {
mNotificationChargingEnabled = chargingEnabled;
updateAmberLight();
Expand Down

0 comments on commit 9fc254c

Please sign in to comment.