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

This commit is contained in:
Mike Lockwood
2012-02-14 11:30:05 -08:00
committed by Android (Google) Code Review

View File

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