Skip to content

Commit ffc8989

Browse files
Mike LockwoodAndroid (Google) Code Review
authored andcommitted
Merge "Don't pulse LED on new notification unless notification has LED flag set" into ics-mr1
2 parents 63b5966 + ece18ef commit ffc8989

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)