Navigation Menu

Skip to content

Commit

Permalink
Merge "Fix initial state of notification light settings" into gingerb…
Browse files Browse the repository at this point in the history
…read
  • Loading branch information
hyperb1iss authored and Gerrit Code Review committed Jul 16, 2011
2 parents 4bed5a5 + 9fc254c commit fa3c91a
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 fa3c91a

Please sign in to comment.