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,22 +797,26 @@ class EventActivity : SimpleActivity() {
|
|||||||
private fun showEditRepeatingEventDialog() {
|
private fun showEditRepeatingEventDialog() {
|
||||||
EditRepeatingEventDialog(this) {
|
EditRepeatingEventDialog(this) {
|
||||||
if (it) {
|
if (it) {
|
||||||
dbHelper.update(mEvent, true, this) {
|
Thread {
|
||||||
finish()
|
dbHelper.update(mEvent, true, this) {
|
||||||
}
|
finish()
|
||||||
|
}
|
||||||
|
}.start()
|
||||||
} else {
|
} else {
|
||||||
dbHelper.addEventRepeatException(mEvent.id!!, mEventOccurrenceTS, true)
|
Thread {
|
||||||
mEvent.apply {
|
dbHelper.addEventRepeatException(mEvent.id!!, mEventOccurrenceTS, true)
|
||||||
parentId = id!!.toLong()
|
mEvent.apply {
|
||||||
id = null
|
parentId = id!!.toLong()
|
||||||
repeatRule = 0
|
id = null
|
||||||
repeatInterval = 0
|
repeatRule = 0
|
||||||
repeatLimit = 0
|
repeatInterval = 0
|
||||||
}
|
repeatLimit = 0
|
||||||
|
}
|
||||||
|
|
||||||
dbHelper.insert(mEvent, true, this) {
|
dbHelper.insert(mEvent, true, this) {
|
||||||
finish()
|
finish()
|
||||||
}
|
}
|
||||||
|
}.start()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user