mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
adding a null check at closing the search
This commit is contained in:
parent
e9165ad41d
commit
fd180fcb53
@ -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…
x
Reference in New Issue
Block a user