mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
do not show a notification of past events if no reminder is set
This commit is contained in:
parent
233eee9270
commit
b3dcab17f7
@ -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)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user