mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
HotFix: Reminder Lock Screen thing
This commit is contained in:
parent
42fe88f17d
commit
0ead5ec72d
1 changed files with 7 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ final class ReminderLiveActivityManager: ObservableObject {
|
|||
settingsUpdateTask = nil
|
||||
pendingSettingsAction = nil
|
||||
pendingSettingsReason = nil
|
||||
deactivateReminder()
|
||||
pauseReminderActivityForLock()
|
||||
} else {
|
||||
if pendingEventsSnapshot != nil {
|
||||
schedulePendingEventsSnapshotApplication()
|
||||
|
|
@ -221,6 +221,12 @@ final class ReminderLiveActivityManager: ObservableObject {
|
|||
}
|
||||
}
|
||||
|
||||
private func pauseReminderActivityForLock() {
|
||||
tickerTask = nil
|
||||
evaluationTask?.cancel()
|
||||
evaluationTask = nil
|
||||
}
|
||||
|
||||
private func recalculateUpcomingEntries(referenceDate: Date = Date(), reason: String) {
|
||||
guard Defaults[.enableReminderLiveActivity] else {
|
||||
deactivateReminder()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue