do not finish the ReminderActivity if Snooze dialog is cancelled

This commit is contained in:
tibbi 2018-07-08 14:23:00 +02:00
parent d7c2323489
commit c5f9dd2906

View File

@ -119,7 +119,7 @@ class ReminderActivity : SimpleActivity() {
setupAlarmClock(alarm!!, config.snoozeTime * MINUTE_SECONDS)
finishActivity()
} else {
showPickSecondsDialog(config.snoozeTime * MINUTE_SECONDS, true, cancelCallback = { finishActivity() }) {
showPickSecondsDialog(config.snoozeTime * MINUTE_SECONDS, true) {
config.snoozeTime = it / MINUTE_SECONDS
setupAlarmClock(alarm!!, it)
finishActivity()