mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-01-27 09:01:20 +01:00
fix #730, make sure Duplicate event works as expected
This commit is contained in:
parent
2efe4289bc
commit
e921009093
@ -701,13 +701,14 @@ class EventActivity : SimpleActivity() {
|
||||
}
|
||||
|
||||
private fun duplicateEvent() {
|
||||
// the activity has the singleTask launchMode to avoid some glitches, so finish it before relaunching
|
||||
finish()
|
||||
Intent(this, EventActivity::class.java).apply {
|
||||
putExtra(EVENT_ID, mEvent.id)
|
||||
putExtra(EVENT_OCCURRENCE_TS, mEventOccurrenceTS)
|
||||
putExtra(IS_DUPLICATE_INTENT, true)
|
||||
startActivity(this)
|
||||
}
|
||||
finish()
|
||||
}
|
||||
|
||||
private fun saveCurrentEvent() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user