mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2024-11-24 19:04:38 -06:00
[Messages/Compose] Fix recipient adding dialog empty.
This commit is contained in:
parent
692555732d
commit
fe82c86c93
@ -62,10 +62,12 @@ class MessagesComposeChipCreator(
|
|||||||
Teacher.TYPE_EDUCATOR,
|
Teacher.TYPE_EDUCATOR,
|
||||||
Teacher.TYPE_STUDENT
|
Teacher.TYPE_STUDENT
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val adapter = nacho.adapter as? MessagesComposeSuggestionAdapter ?: return null
|
||||||
val teachers = if (sortByCategory)
|
val teachers = if (sortByCategory)
|
||||||
teacherList.sortedBy { it.typeDescription }
|
adapter.originalList.sortedBy { it.typeDescription }
|
||||||
else
|
else
|
||||||
teacherList
|
adapter.originalList
|
||||||
|
|
||||||
val category = mutableListOf<Teacher>()
|
val category = mutableListOf<Teacher>()
|
||||||
val categoryNames = mutableListOf<CharSequence>()
|
val categoryNames = mutableListOf<CharSequence>()
|
||||||
|
Loading…
Reference in New Issue
Block a user