From 93333a8c48b3eb55bee4a24634e9369db7618bec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Tue, 31 Mar 2020 08:34:08 +0200 Subject: [PATCH] [Homework] Fix showing done homework on every profile. --- .../edziennik/ui/modules/homework/HomeworkListFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/homework/HomeworkListFragment.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/homework/HomeworkListFragment.kt index 0cbba646..ba02cb6d 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/homework/HomeworkListFragment.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/modules/homework/HomeworkListFragment.kt @@ -50,7 +50,7 @@ class HomeworkListFragment : LazyFragment(), CoroutineScope { val today = Date.getToday() val filter = when(homeworkDate) { HomeworkDate.CURRENT -> "eventDate >= '${today.stringY_m_d}' AND eventIsDone = 0" - else -> "eventDate < '${today.stringY_m_d}' OR eventIsDone = 1" + else -> "(eventDate < '${today.stringY_m_d}' OR eventIsDone = 1)" } val adapter = EventListAdapter(