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)
|
it.icon?.applyColorFilter(config.textColor)
|
||||||
},
|
},
|
||||||
tabSelectedAction = {
|
tabSelectedAction = {
|
||||||
|
if (isSearchOpen) {
|
||||||
|
getCurrentFragment()?.onSearchQueryChanged("")
|
||||||
|
searchMenuItem?.collapseActionView()
|
||||||
|
}
|
||||||
viewpager.currentItem = it.position
|
viewpager.currentItem = it.position
|
||||||
it.icon?.applyColorFilter(getAdjustedPrimaryColor())
|
it.icon?.applyColorFilter(getAdjustedPrimaryColor())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue