mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-05-19 20:16:50 -04:00
adding a null check at closing the search
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user