Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa99257d authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Only play notification sounds for active user." into jb-mr1-dev

parents 73755c95 8637bd97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1033,7 +1033,8 @@ public class NotificationManagerService extends INotificationManager.Stub
            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)
                    && (r.userId == UserHandle.USER_ALL ||
                        (r.userId == userId && r.userId == ActivityManager.getCurrentUser()))
                    && mSystemReady) {

                final AudioManager audioManager = (AudioManager) mContext