adding a null check at closing the search
This commit is contained in:
parent
e9165ad41d
commit
fd180fcb53
1 changed files with 3 additions and 1 deletions
|
@ -205,7 +205,9 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
|||
override fun onPageScrollStateChanged(state: Int) {
|
||||
if (isSearchOpen) {
|
||||
getCurrentFragment().onSearchQueryChanged("")
|
||||
MenuItemCompat.collapseActionView(searchMenuItem)
|
||||
if (searchMenuItem != null) {
|
||||
MenuItemCompat.collapseActionView(searchMenuItem)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue