mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 14:27:24 +00:00
Merge pull request #2589 from nextcloud/bugfix/2504/showConversationResultsFirst
Show conversation search results first
This commit is contained in:
commit
1c08889969
@ -1325,7 +1325,8 @@ class ConversationsListController(bundle: Bundle) :
|
||||
if (results.hasMore) {
|
||||
adapterItems.add(LoadMoreResultsItem)
|
||||
}
|
||||
adapter!!.addItems(0, adapterItems)
|
||||
// add unified search result at the end of the list
|
||||
adapter!!.addItems(adapter!!.mainItemCount + adapter!!.scrollableHeaders.size, adapterItems)
|
||||
binding.recyclerView.scrollToPosition(0)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user