show the alarm reliability warning at saving the first event too
This commit is contained in:
parent
01cdcb412b
commit
12efdc90c7
|
@ -994,7 +994,18 @@ class EventActivity : SimpleActivity() {
|
||||||
|
|
||||||
private fun saveCurrentEvent() {
|
private fun saveCurrentEvent() {
|
||||||
ensureBackgroundThread {
|
ensureBackgroundThread {
|
||||||
|
trySaveEvent()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private fun trySaveEvent() {
|
||||||
|
if (config.wasAlarmWarningShown || (mReminder1Minutes == REMINDER_OFF && mReminder2Minutes == REMINDER_OFF && mReminder3Minutes == REMINDER_OFF)) {
|
||||||
saveEvent()
|
saveEvent()
|
||||||
|
} else {
|
||||||
|
ConfirmationDialog(this, messageId = R.string.reminder_warning, positive = R.string.ok, negative = 0) {
|
||||||
|
config.wasAlarmWarningShown = true
|
||||||
|
saveEvent()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue