From fc3b6fd1e0723d9ee2d4267fc5f1a33c00cf7220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 2 Dec 2019 19:07:30 +0100 Subject: [PATCH] [UI/Event] Fix stuff because i'm dumb --- .../edziennik/ui/dialogs/event/EventManualV2Dialog.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt index c8b9839c..7d56155f 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt @@ -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 }