adding some extra activity checks at updating events

This commit is contained in:
tibbi 2020-02-06 23:02:47 +01:00
parent a2ab073650
commit 121e95e033
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ class EventActivity : SimpleActivity() {
val localEventType = mStoredEventTypes.firstOrNull { it.id == config.lastUsedLocalEventTypeId }
runOnUiThread {
gotEvent(savedInstanceState, localEventType, event)
if (!isDestroyed && !isFinishing) {
gotEvent(savedInstanceState, localEventType, event)
}
}
}
}