Skip to content

Commit

Permalink
Fix contact icon disappearing after opening search in Help activity
Browse files Browse the repository at this point in the history
  • Loading branch information
jahirfiquitiva committed May 18, 2018
1 parent d7c82b2 commit 2be3eff
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ import jahirfiquitiva.libs.kauextensions.extensions.getAppName
import jahirfiquitiva.libs.kauextensions.extensions.getPrimaryTextColorFor
import jahirfiquitiva.libs.kauextensions.extensions.getSecondaryTextColorFor
import jahirfiquitiva.libs.kauextensions.extensions.hasContent
import jahirfiquitiva.libs.kauextensions.extensions.hideAllItems
import jahirfiquitiva.libs.kauextensions.extensions.primaryColor
import jahirfiquitiva.libs.kauextensions.extensions.showAllItems
import jahirfiquitiva.libs.kauextensions.extensions.tint
import jahirfiquitiva.libs.kauextensions.ui.activities.ThemedActivity
import jahirfiquitiva.libs.kauextensions.ui.widgets.CustomSearchView
Expand Down Expand Up @@ -103,13 +101,7 @@ class HelpActivity : ThemedActivity<BPKonfigs>() {
menu?.let {
searchItem = it.findItem(R.id.search)
searchView = searchItem?.actionView as? CustomSearchView
searchView?.onExpand = {
it.hideAllItems()
}
searchView?.onCollapse = {
it.showAllItems()
doSearch()
}
searchView?.onCollapse = { doSearch() }
searchView?.onQueryChanged = { doSearch(it) }
searchView?.onQuerySubmit = { doSearch(it) }
searchView?.bindToItem(searchItem)
Expand Down

0 comments on commit 2be3eff

Please sign in to comment.