From 54b56768c1cfe17dcb5b90a68cd433d34c01afea Mon Sep 17 00:00:00 2001 From: Kacper Ziubryniewicz Date: Sun, 29 Sep 2019 12:39:07 +0200 Subject: [PATCH] [Homework] Fix homework sorting --- .../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 22da31a5..ad3d736f 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 @@ -64,7 +64,7 @@ class HomeworkListFragment : Fragment() { if (app.profile == null || !isAdded) return@Observer if (homeworkList != null && homeworkList.size > 0) { - val adapter = HomeworkAdapter(context, homeworkList) + val adapter = HomeworkAdapter(context, homeworkList.reversed()) b.homeworkView.adapter = adapter b.homeworkView.visibility = View.VISIBLE b.homeworkNoData.visibility = View.GONE