am ffc89899: Merge "Don\'t pulse LED on new notification unless notification has LED flag set" into ics-mr1

* commit 'ffc89899652f5c815b6d156f55a909001420891e':
  Don't pulse LED on new notification unless notification has LED flag set
This commit is contained in:
Mike Lockwood
2012-02-14 12:37:16 -08:00
committed by Android Git Automerger

View File

@@ -767,7 +767,9 @@ public class NotificationManagerService extends INotificationManager.Stub
long identity = Binder.clearCallingIdentity();
try {
r.statusBarKey = mStatusBar.addNotification(n);
mAttentionLight.pulse();
if ((n.notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0) {
mAttentionLight.pulse();
}
}
finally {
Binder.restoreCallingIdentity(identity);