Implemented bulk notification schedueling after restore.

This commit is contained in:
Aaron
2021-01-26 22:47:16 -05:00
parent 65eeea22e8
commit 57e5eca0f9
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -156,9 +156,9 @@ class AddAlarmViewController: UIViewController
//Schedules notification for the alarm
if editFlag{
Notification(alarm: oldAlarm!).removeNotification()
Notification.removeNotification(alarm: oldAlarm!)
}
Notification(alarm: alarm).scheduleNotification()
Notification.scheduleNotification(alarm: alarm)
// Dismiss this view
self.dismiss(animated: true, completion: nil)