[UI/Event] Fix stuff because i'm dumb

This commit is contained in:
Kuba Szczodrzyński 2019-12-02 19:07:30 +01:00
parent 9bc7f9ac11
commit fc3b6fd1e0

View File

@ -88,12 +88,11 @@ class EventManualV2Dialog(
show()
}
defaultType?.let {
event.type = it
}
event = editingEvent?.clone() ?: Event().also { event ->
event.profileId = profileId
defaultType?.let {
event.type = it
}
b.shareSwitch.isChecked = event.sharedBy != null
}