mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-03-08 07:25:25 +01:00
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…
x
Reference in New Issue
Block a user