shorten the search close code
This commit is contained in:
parent
2c5daff95c
commit
da2219f160
|
@ -222,9 +222,7 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||
override fun onPageScrollStateChanged(state: Int) {
|
||||
if (isSearchOpen) {
|
||||
getCurrentFragment().onSearchQueryChanged("")
|
||||
if (searchMenuItem != null) {
|
||||
MenuItemCompat.collapseActionView(searchMenuItem)
|
||||
}
|
||||
searchMenuItem?.collapseActionView()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue