mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
do not show a notification of past events if no reminder is set
This commit is contained in:
@@ -575,7 +575,9 @@ class EventActivity : SimpleActivity() {
|
|||||||
if (mEvent.id == 0) {
|
if (mEvent.id == 0) {
|
||||||
dbHelper.insert(mEvent, true) {
|
dbHelper.insert(mEvent, true) {
|
||||||
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
|
if (DateTime.now().isAfter(mEventStartDateTime.millis)) {
|
||||||
notifyEvent(mEvent)
|
if (mEvent.getReminders().isNotEmpty()) {
|
||||||
|
notifyEvent(mEvent)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
toast(R.string.event_added)
|
toast(R.string.event_added)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user