mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 12:20:51 +01:00
adding some extra activity checks at updating events
This commit is contained in:
parent
a2ab073650
commit
121e95e033
@ -117,10 +117,12 @@ class EventActivity : SimpleActivity() {
|
|||||||
|
|
||||||
val localEventType = mStoredEventTypes.firstOrNull { it.id == config.lastUsedLocalEventTypeId }
|
val localEventType = mStoredEventTypes.firstOrNull { it.id == config.lastUsedLocalEventTypeId }
|
||||||
runOnUiThread {
|
runOnUiThread {
|
||||||
|
if (!isDestroyed && !isFinishing) {
|
||||||
gotEvent(savedInstanceState, localEventType, event)
|
gotEvent(savedInstanceState, localEventType, event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun gotEvent(savedInstanceState: Bundle?, localEventType: EventType?, event: Event?) {
|
private fun gotEvent(savedInstanceState: Bundle?, localEventType: EventType?, event: Event?) {
|
||||||
if (localEventType == null || localEventType.caldavCalendarId != 0) {
|
if (localEventType == null || localEventType.caldavCalendarId != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user