mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-26 15:05:44 +03:00
add documentation to comparator
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
parent
f118cc7dd3
commit
914bb44514
1 changed files with 3 additions and 0 deletions
|
@ -685,6 +685,9 @@ class ConversationInfoController(args: Bundle) : BaseController(args), FlexibleA
|
|||
private const val ID_DELETE_CONVERSATION_DIALOG = 0
|
||||
}
|
||||
|
||||
/**
|
||||
* Comparator for participants, sorts by online-status, moderator-status and display name.
|
||||
*/
|
||||
class UserItemComparator : Comparator<UserItem> {
|
||||
override fun compare(left: UserItem, right: UserItem): Int {
|
||||
if (left.isOnline && !right.isOnline) {
|
||||
|
|
Loading…
Reference in a new issue