Don't pulse LED on new notification unless notification has LED flag set
Bug: 6006131 Change-Id: I719c7d68e310bfaca227f6286159b3993784926b Signed-off-by: Mike Lockwood <lockwood@google.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user