From 2c7a722d67c56dd3fde62167ab4310e16624d740 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 10 Jan 2018 14:44:49 +0100 Subject: [PATCH] show an instant notification at event saving only if it isnt repeatable --- .../com/simplemobiletools/calendar/activities/EventActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index 388de5336..685d8dbc0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -578,7 +578,7 @@ class EventActivity : SimpleActivity() { if (mEvent.id == 0) { dbHelper.insert(mEvent, true) { if (DateTime.now().isAfter(mEventStartDateTime.millis)) { - if (mEvent.getReminders().isNotEmpty()) { + if (mEvent.repeatInterval == 0 && mEvent.getReminders().isNotEmpty()) { notifyEvent(mEvent) } } else {