adding some extra activity checks at updating events
This commit is contained in:
parent
a2ab073650
commit
121e95e033
|
@ -117,7 +117,9 @@ class EventActivity : SimpleActivity() {
|
||||||
|
|
||||||
val localEventType = mStoredEventTypes.firstOrNull { it.id == config.lastUsedLocalEventTypeId }
|
val localEventType = mStoredEventTypes.firstOrNull { it.id == config.lastUsedLocalEventTypeId }
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
gotEvent(savedInstanceState, localEventType, event)
|
if (!isDestroyed && !isFinishing) {
|
||||||
|
gotEvent(savedInstanceState, localEventType, event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue