mirror of
https://github.com/nextcloud/talk-android
synced 2025-07-10 14:24:05 +01:00
archive filter UI is disabled when searching
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
parent
0ba959fb69
commit
cd79275475
@ -1349,6 +1349,7 @@ class ConversationsListActivity :
|
||||
private fun performFilterAndSearch(filter: String?) {
|
||||
if (filter!!.length >= SEARCH_MIN_CHARS) {
|
||||
clearMessageSearchResults()
|
||||
binding.noArchivedConversationLayout.visibility = View.GONE
|
||||
|
||||
if (hasFilterEnabled()) {
|
||||
adapter?.updateDataSet(conversationItems)
|
||||
@ -1372,6 +1373,12 @@ class ConversationsListActivity :
|
||||
clearMessageSearchResults()
|
||||
adapter?.setFilter("")
|
||||
adapter?.filterItems()
|
||||
val archiveFilterOn = filterState[FilterConversationFragment.ARCHIVE] ?: false
|
||||
if (archiveFilterOn && adapter!!.isEmpty) {
|
||||
binding.noArchivedConversationLayout.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.noArchivedConversationLayout.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
private fun clearMessageSearchResults() {
|
||||
|
Loading…
Reference in New Issue
Block a user