mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-25 06:25:40 +03:00
Got the highlighting fixed - need to fix the submit button (or disable it) as tapping it destroys the searchViewDisposable for some reason
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
parent
45cb74d4ce
commit
a4fd2e6a4b
1 changed files with 6 additions and 3 deletions
|
@ -625,15 +625,18 @@ class ConversationsListActivity :
|
|||
showSearchView(searchView, searchItem)
|
||||
viewThemeUtils.platform.themeStatusBar(this)
|
||||
}
|
||||
searchView!!.setOnCloseListener {
|
||||
searchView!!.findViewById<View>(R.id.search_close_btn).setOnClickListener {
|
||||
if (TextUtils.isEmpty(searchView!!.query.toString())) {
|
||||
searchView!!.onActionViewCollapsed()
|
||||
viewThemeUtils.platform.resetStatusBar(this)
|
||||
} else {
|
||||
searchView!!.post { searchView!!.setQuery(TAG, true) }
|
||||
resetSearchResults()
|
||||
searchView!!.setQuery("", false)
|
||||
}
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
|
||||
searchItem!!.setOnActionExpandListener(object : MenuItem.OnActionExpandListener {
|
||||
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
|
||||
initSearchDisposable()
|
||||
|
|
Loading…
Reference in a new issue