mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-01-07 05:58:25 +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() {
|
private fun finishActivity() {
|
||||||
if (!wasAlarmSnoozed && alarm != null && alarm!!.days > 0) {
|
if (!wasAlarmSnoozed && alarm != null) {
|
||||||
scheduleNextAlarm(alarm!!, false)
|
if (alarm!!.days > 0) {
|
||||||
|
scheduleNextAlarm(alarm!!, false)
|
||||||
|
}
|
||||||
|
if (alarm!!.days < 0) {
|
||||||
|
dbHelper.updateAlarmEnabledState(alarm!!.id, false)
|
||||||
|
updateWidgets()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
destroyEffects()
|
destroyEffects()
|
||||||
|
Loading…
Reference in New Issue
Block a user