fix #535, hide the dialpad button while search is open
This commit is contained in:
parent
6b55adefbd
commit
8a41f3022f
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue