| commit | 24518e466ab36ce7c6d2ffd733ac4d57f255766e | [log] [tgz] |
|---|---|---|
| author | Daniel Sandler <dsandler@android.com> | Tue Sep 04 13:23:01 2012 -0400 |
| committer | Daniel Sandler <dsandler@android.com> | Wed Sep 05 08:41:07 2012 -0400 |
| tree | d866e7851240f6660791d864780bdfe73cbe262b | |
| parent | e94831e5ed4aa3b1ebc5444cc1b16cdab8cb92f8 [diff] [blame] |
Do not play sounds or vibes for background users' notifications. USER_ALL notifications will still play/vibe for any user. Change-Id: Ie8cc69bd1541193ed9c4207ef38a8d4898af0a9d
diff --git a/services/java/com/android/server/NotificationManagerService.java b/services/java/com/android/server/NotificationManagerService.java index 40f6ecf..e7b839f 100755 --- a/services/java/com/android/server/NotificationManagerService.java +++ b/services/java/com/android/server/NotificationManagerService.java
@@ -1047,6 +1047,7 @@ if (((mDisabledNotifications & StatusBarManager.DISABLE_NOTIFICATION_ALERTS) == 0) && (!(old != null && (notification.flags & Notification.FLAG_ONLY_ALERT_ONCE) != 0 )) + && (r.userId == UserHandle.USER_ALL || r.userId == userId) && mSystemReady) { final AudioManager audioManager = (AudioManager) mContext