forked from github/szkolny
[Homework] Fix homework sorting
This commit is contained in:
parent
ce0f2f74df
commit
54b56768c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user