mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-01-05 13:07:14 +01:00
Properly disable alarms when dismissed via ReminderActivity
This closes #504
This commit is contained in:
parent
f002d10179
commit
663bfebc78
@ -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 New Issue
Block a user