mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
handle a couple more threading issues related to storing events
This commit is contained in:
@@ -797,10 +797,13 @@ class EventActivity : SimpleActivity() {
|
|||||||
private fun showEditRepeatingEventDialog() {
|
private fun showEditRepeatingEventDialog() {
|
||||||
EditRepeatingEventDialog(this) {
|
EditRepeatingEventDialog(this) {
|
||||||
if (it) {
|
if (it) {
|
||||||
|
Thread {
|
||||||
dbHelper.update(mEvent, true, this) {
|
dbHelper.update(mEvent, true, this) {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
}.start()
|
||||||
} else {
|
} else {
|
||||||
|
Thread {
|
||||||
dbHelper.addEventRepeatException(mEvent.id!!, mEventOccurrenceTS, true)
|
dbHelper.addEventRepeatException(mEvent.id!!, mEventOccurrenceTS, true)
|
||||||
mEvent.apply {
|
mEvent.apply {
|
||||||
parentId = id!!.toLong()
|
parentId = id!!.toLong()
|
||||||
@@ -813,6 +816,7 @@ class EventActivity : SimpleActivity() {
|
|||||||
dbHelper.insert(mEvent, true, this) {
|
dbHelper.insert(mEvent, true, this) {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
}.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user