fix #535, hide the dialpad button while search is open

This commit is contained in:
tibbi 2020-04-27 23:24:59 +02:00
parent 6b55adefbd
commit 8a41f3022f
1 changed files with 2 additions and 0 deletions

View File

@ -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
}
})