mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 03:59:35 +01: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
@ -625,15 +625,18 @@ class ConversationsListActivity :
|
|||||||
showSearchView(searchView, searchItem)
|
showSearchView(searchView, searchItem)
|
||||||
viewThemeUtils.platform.themeStatusBar(this)
|
viewThemeUtils.platform.themeStatusBar(this)
|
||||||
}
|
}
|
||||||
searchView!!.setOnCloseListener {
|
searchView!!.findViewById<View>(R.id.search_close_btn).setOnClickListener {
|
||||||
if (TextUtils.isEmpty(searchView!!.query.toString())) {
|
if (TextUtils.isEmpty(searchView!!.query.toString())) {
|
||||||
searchView!!.onActionViewCollapsed()
|
searchView!!.onActionViewCollapsed()
|
||||||
viewThemeUtils.platform.resetStatusBar(this)
|
viewThemeUtils.platform.resetStatusBar(this)
|
||||||
} else {
|
} else {
|
||||||
searchView!!.post { searchView!!.setQuery(TAG, true) }
|
resetSearchResults()
|
||||||
|
searchView!!.setQuery("", false)
|
||||||
}
|
}
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
searchItem!!.setOnActionExpandListener(object : MenuItem.OnActionExpandListener {
|
searchItem!!.setOnActionExpandListener(object : MenuItem.OnActionExpandListener {
|
||||||
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
|
override fun onMenuItemActionExpand(item: MenuItem): Boolean {
|
||||||
initSearchDisposable()
|
initSearchDisposable()
|
||||||
|
Loading…
Reference in New Issue
Block a user