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

Commit 23be4d10 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

When a profile is stopped, remove pending snoozes

To be consistent with the way that non-snoozed notifications
are canceled.

Also, simplify the data structures in SnoozeHelper.

Test: SnoozeHelperTest
Fixes: 211157091
Change-Id: I0cd8b0f406290a7886f4d60309ef3ba626af3726
parent 7c38394a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1794,6 +1794,7 @@ public class NotificationManagerService extends SystemService {
                if (userHandle >= 0) {
                    cancelAllNotificationsInt(MY_UID, MY_PID, null, null, 0, 0, true, userHandle,
                            REASON_PROFILE_TURNED_OFF, null);
                    mSnoozeHelper.clearData(userHandle);
                }
            } else if (action.equals(Intent.ACTION_USER_PRESENT)) {
                // turn off LED when user passes through lock screen