show an instant notification at event saving only if it isnt repeatable
This commit is contained in:
parent
8229735f63
commit
2c7a722d67
|
@ -578,7 +578,7 @@ 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)) {
|
||||||
if (mEvent.getReminders().isNotEmpty()) {
|
if (mEvent.repeatInterval == 0 && mEvent.getReminders().isNotEmpty()) {
|
||||||
notifyEvent(mEvent)
|
notifyEvent(mEvent)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue