do not show a notification of past events if no reminder is set

This commit is contained in:
tibbi 2017-12-14 09:26:23 +01:00
parent 233eee9270
commit b3dcab17f7

View File

@ -575,7 +575,9 @@ class EventActivity : SimpleActivity() {
if (mEvent.id == 0) {
dbHelper.insert(mEvent, true) {
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
notifyEvent(mEvent)
if (mEvent.getReminders().isNotEmpty()) {
notifyEvent(mEvent)
}
} else {
toast(R.string.event_added)
}