fix #535, hide the dialpad button while search is open
This commit is contained in:
parent
6b55adefbd
commit
8a41f3022f
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue