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

Commit 4f57afc9 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Fix muteOnReturn behavior for snoozed notifications

By actually reading the muteOnReturn variable

Test: snooze a notification, ensure it comes back with sound
Fixes: 238941115
Change-Id: I984e796a8c502348033022ce5f4fd79ea64e2335
parent a5fb4ff0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2459,11 +2459,11 @@ public class NotificationManagerService extends SystemService {
        SnoozeHelper snoozeHelper = new SnoozeHelper(getContext(), (userId, r, muteOnReturn) -> {
            try {
                if (DBG) {
                    Slog.d(TAG, "Reposting " + r.getKey());
                    Slog.d(TAG, "Reposting " + r.getKey() + " " + muteOnReturn);
                }
                enqueueNotificationInternal(r.getSbn().getPackageName(), r.getSbn().getOpPkg(),
                        r.getSbn().getUid(), r.getSbn().getInitialPid(), r.getSbn().getTag(),
                        r.getSbn().getId(),  r.getSbn().getNotification(), userId, true);
                        r.getSbn().getId(),  r.getSbn().getNotification(), userId, muteOnReturn);
            } catch (Exception e) {
                Slog.e(TAG, "Cannot un-snooze notification", e);
            }