mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
fix #535, hide the dialpad button while search is open
This commit is contained in:
@ -268,12 +268,14 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||
override fun onMenuItemActionExpand(item: MenuItem?): Boolean {
|
||||
getCurrentFragment()?.onSearchOpened()
|
||||
isSearchOpen = true
|
||||
main_dialpad_button.beGone()
|
||||
return true
|
||||
}
|
||||
|
||||
override fun onMenuItemActionCollapse(item: MenuItem?): Boolean {
|
||||
getCurrentFragment()?.onSearchClosed()
|
||||
isSearchOpen = false
|
||||
main_dialpad_button.beVisibleIf(config.showDialpadButton)
|
||||
return true
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user