mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-01-20 19:19:21 +01:00
fix #200, close search at changing tab
This commit is contained in:
parent
4083bdcbb1
commit
c081fd18bf
@ -296,6 +296,10 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
|
||||
it.icon?.applyColorFilter(config.textColor)
|
||||
},
|
||||
tabSelectedAction = {
|
||||
if (isSearchOpen) {
|
||||
getCurrentFragment()?.onSearchQueryChanged("")
|
||||
searchMenuItem?.collapseActionView()
|
||||
}
|
||||
viewpager.currentItem = it.position
|
||||
it.icon?.applyColorFilter(getAdjustedPrimaryColor())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user