mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[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 (app.profile == null || !isAdded) return@Observer
|
||||||
|
|
||||||
if (homeworkList != null && homeworkList.size > 0) {
|
if (homeworkList != null && homeworkList.size > 0) {
|
||||||
val adapter = HomeworkAdapter(context, homeworkList)
|
val adapter = HomeworkAdapter(context, homeworkList.reversed())
|
||||||
b.homeworkView.adapter = adapter
|
b.homeworkView.adapter = adapter
|
||||||
b.homeworkView.visibility = View.VISIBLE
|
b.homeworkView.visibility = View.VISIBLE
|
||||||
b.homeworkNoData.visibility = View.GONE
|
b.homeworkNoData.visibility = View.GONE
|
||||||
|
Loading…
Reference in New Issue
Block a user