diff options
author | Mike Lockwood <lockwood@google.com> | 2012-02-13 20:42:19 -0800 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2012-02-13 20:42:19 -0800 |
commit | ece18efb35f762d2f7d2e802be29464ec6abdfbf (patch) | |
tree | 3ef4fa0c0d155e3b6e0eb77a8d40f2f3aa65cb9d /services | |
parent | 08eb7dd630a2de8dd51a988a747da26ff9d3f8fb (diff) | |
download | frameworks_base-ece18efb35f762d2f7d2e802be29464ec6abdfbf.zip frameworks_base-ece18efb35f762d2f7d2e802be29464ec6abdfbf.tar.gz frameworks_base-ece18efb35f762d2f7d2e802be29464ec6abdfbf.tar.bz2 |
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>
Diffstat (limited to 'services')
-rwxr-xr-x | services/java/com/android/server/NotificationManagerService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 5039294..3cf447c 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java @@ -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); |