close search at changing tabbs

This commit is contained in:
tibbi 2022-06-26 09:20:08 +02:00
parent d3944a84ab
commit c0946cf0b5
2 changed files with 2 additions and 1 deletions

View File

@ -61,6 +61,6 @@ android {
} }
dependencies { dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:fd1fde1dbd' implementation 'com.github.SimpleMobileTools:Simple-Commons:4aa0b9aaad'
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61' implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
} }

View File

@ -327,6 +327,7 @@ class MainActivity : SimpleActivity() {
updateBottomTabItemColors(it.customView, false) updateBottomTabItemColors(it.customView, false)
}, },
tabSelectedAction = { tabSelectedAction = {
closeSearch()
view_pager.currentItem = it.position view_pager.currentItem = it.position
updateBottomTabItemColors(it.customView, true) updateBottomTabItemColors(it.customView, true)
} }