Snooze with background activation.

This commit is contained in:
Burak Kaan Köse
2026-04-05 02:19:11 +02:00
parent 6013865fca
commit c1ab49fb1d
2 changed files with 42 additions and 7 deletions
@@ -350,12 +350,12 @@ public class NotificationBuilder : INotificationBuilder
var snoozeButton = new ToastButton()
.SetContent(Translator.CalendarReminder_SnoozeAction)
.SetImageUri(GetNotificationIconUri("calendar-snooze"))
.SetBackgroundActivation();
builder.AddButton(snoozeButton)
.AddArgument(Constants.ToastCalendarActionKey, Constants.ToastCalendarSnoozeAction)
.AddArgument(Constants.ToastCalendarItemIdKey, calendarItem.Id.ToString())
.AddArgument(Constants.ToastModeKey, Constants.ToastModeCalendar);
.AddArgument(Constants.ToastModeKey, Constants.ToastModeCalendar)
.SetBackgroundActivation();
builder.AddButton(snoozeButton);
}
builder.AddButton(new ToastButton()