From 8a41f3022fb7c130105175d1c32bfbd8d5a030be Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 27 Apr 2020 23:24:59 +0200 Subject: [PATCH] fix #535, hide the dialpad button while search is open --- .../simplemobiletools/contacts/pro/activities/MainActivity.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt index 5cc5c609..0eec4cbd 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/MainActivity.kt @@ -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 } })