Skip to content

Commit ece18ef

Browse files
author
Mike Lockwood
committed
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>
1 parent 08eb7dd commit ece18ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

services/java/com/android/server/NotificationManagerService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@ public void enqueueNotificationInternal(String pkg, int callingUid, int callingP
767767
long identity = Binder.clearCallingIdentity();
768768
try {
769769
r.statusBarKey = mStatusBar.addNotification(n);
770-
mAttentionLight.pulse();
770+
if ((n.notification.flags & Notification.FLAG_SHOW_LIGHTS) != 0) {
771+
mAttentionLight.pulse();
772+
}
771773
}
772774
finally {
773775
Binder.restoreCallingIdentity(identity);

0 commit comments

Comments
 (0)