Replace deprecated MenuItemCompat.collapseActionView
This commit is contained in:
parent
04823c8fa4
commit
e57bb9531b
1 changed files with 1 additions and 3 deletions
|
@ -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 a new issue