Properly disable alarms when dismissed via ReminderActivity
This closes #504
This commit is contained in:
parent
f002d10179
commit
663bfebc78
1 changed files with 8 additions and 2 deletions
|
@ -261,8 +261,14 @@ class ReminderActivity : SimpleActivity() {
|
|||
}
|
||||
|
||||
private fun finishActivity() {
|
||||
if (!wasAlarmSnoozed && alarm != null && alarm!!.days > 0) {
|
||||
scheduleNextAlarm(alarm!!, false)
|
||||
if (!wasAlarmSnoozed && alarm != null) {
|
||||
if (alarm!!.days > 0) {
|
||||
scheduleNextAlarm(alarm!!, false)
|
||||
}
|
||||
if (alarm!!.days < 0) {
|
||||
dbHelper.updateAlarmEnabledState(alarm!!.id, false)
|
||||
updateWidgets()
|
||||
}
|
||||
}
|
||||
|
||||
destroyEffects()
|
||||
|
|
Loading…
Reference in a new issue