mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
exit the app when opening a notification to an invalid event
This commit is contained in:
parent
f559577d90
commit
87fb85654d
@ -48,6 +48,12 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||
|
||||
val eventId = intent.getIntExtra(EVENT_ID, 0)
|
||||
val event = dbHelper.getEvent(eventId)
|
||||
|
||||
if (eventId != 0 && event == null) {
|
||||
finish()
|
||||
return
|
||||
}
|
||||
|
||||
if (event != null) {
|
||||
mEvent = event
|
||||
mEventOccurrenceTS = intent.getIntExtra(EVENT_OCCURRENCE_TS, 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user