From b8e1e1d33a11cdf7bbf87f81b390784986fb327d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Wed, 25 Mar 2020 17:36:22 +0100 Subject: [PATCH] [Event/Manual] Fix dropdowns not showing any data. --- .../edziennik/ui/dialogs/event/EventManualDialog.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualDialog.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualDialog.kt index e9c9851b..7af42647 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualDialog.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualDialog.kt @@ -241,7 +241,7 @@ class EventManualDialog( with (b.dateDropdown) { db = app.db - profileId = profileId + profileId = this@EventManualDialog.profileId showWeekDays = false showDays = true showOtherDate = true @@ -269,7 +269,7 @@ class EventManualDialog( with (b.timeDropdown) { db = app.db - profileId = profileId + profileId = this@EventManualDialog.profileId showAllDay = true showCustomTime = true lessonsDate = b.dateDropdown.getSelected() as? Date ?: Date.getToday() @@ -289,7 +289,7 @@ class EventManualDialog( with (b.teamDropdown) { db = app.db - profileId = profileId + profileId = this@EventManualDialog.profileId showNoTeam = true loadItems() selectTeamClass() @@ -299,7 +299,7 @@ class EventManualDialog( with (b.subjectDropdown) { db = app.db - profileId = profileId + profileId = this@EventManualDialog.profileId showNoSubject = true showCustomSubject = false loadItems() @@ -309,7 +309,7 @@ class EventManualDialog( with (b.teacherDropdown) { db = app.db - profileId = profileId + profileId = this@EventManualDialog.profileId showNoTeacher = true loadItems() selectDefault(editingEvent?.teacherId)