fix #357 - 12 hour snooze

This commit is contained in:
Johan Degraeve 2022-05-30 21:16:06 +02:00
parent aa2c1e7edf
commit 71f5831cc6
1 changed files with 2 additions and 2 deletions

View File

@ -51,12 +51,12 @@ public class AlertManager:NSObject {
private var coreDataManager: CoreDataManager
/// snooze times in minutes
private let snoozeValueMinutes = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 75, 90, 120, 150, 180, 240, 300, 360, 420, 480, 540, 600, 1440, 10080]
private let snoozeValueMinutes = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 75, 90, 120, 150, 180, 240, 300, 360, 420, 480, 540, 600, 720, 1440, 10080]
/// snooze times as shown to the user, actual strings will be replaced during init
private var snoozeValueStrings = ["5 minutes", "10 minutes", "15 minutes", "20 minutes", "25 minutes", "30 minutes", "35 minutes",
"40 minutes", "45 minutes", "50 minutes", "55 minutes", "1 hour", "1 hour 15 minutes", "1,5 hours", "2 hours", "2,5 hours", "3 hours", "4 hours",
"5 hours", "6 hours", "7 hours", "8 hours", "9 hours", "10 hours", "1 day", "1 week"]
"5 hours", "6 hours", "7 hours", "8 hours", "9 hours", "10 hours", "12 hours", "1 day", "1 week"]
/// constant for key in ApplicationManager.shared.addClosureToRunWhenAppWillEnterForeground - for closure that will stop playing sound
private let applicationManagerKeyStopPlayingSound = "AlertManager-stopplayingsound"