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

Commit 24518e46 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Do not play sounds or vibes for background users' notifications.

USER_ALL notifications will still play/vibe for any user.

Change-Id: Ie8cc69bd1541193ed9c4207ef38a8d4898af0a9d
parent e94831e5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1047,6 +1047,7 @@ 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)
                    && mSystemReady) {

                final AudioManager audioManager = (AudioManager) mContext