From 33fcffd2bd1bfb4a7ca2e7c8ca66aec83b728da3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Sun, 5 Jan 2020 18:39:42 +0100 Subject: [PATCH] [API/Vulcan] Fix incorrect Attendance type. --- .../api/edziennik/vulcan/data/api/VulcanApiDictionaries.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/api/VulcanApiDictionaries.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/api/VulcanApiDictionaries.kt index e831dad0..d9bdd254 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/api/VulcanApiDictionaries.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/edziennik/vulcan/data/api/VulcanApiDictionaries.kt @@ -132,9 +132,9 @@ class VulcanApiDictionaries(override val data: DataVulcan, val onSuccess: () -> val present = attendanceType.getBoolean("Obecnosc") ?: true if (belated) if (excused) - Attendance.TYPE_ABSENT_EXCUSED + Attendance.TYPE_BELATED_EXCUSED else - Attendance.TYPE_ABSENT + Attendance.TYPE_BELATED else if (released) Attendance.TYPE_RELEASED else if (present)