Skip to content

Commit

Permalink
implements FossifyOrg#94
Browse files Browse the repository at this point in the history
On tab switch, the search string is not deleted and immedeatly applied to the selected tab
  • Loading branch information
Honk2 committed Jul 21, 2024
1 parent 52ab3a3 commit 377126b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,9 @@ class MainActivity : SimpleActivity() {
updateBottomTabItemColors(it.customView, false, getDeselectedTabDrawableIds()[it.position])
},
tabSelectedAction = {
binding.mainMenu.closeSearch()
getCurrentFragment()?.onSearchQueryChanged(binding.mainMenu.getCurrentQuery())
binding.viewPager.currentItem = it.position
updateBottomTabItemColors(it.customView, true, getSelectedTabDrawableIds()[it.position])

val lastPosition = binding.mainTabsHolder.tabCount - 1
if (it.position == lastPosition && config.showTabs and TAB_CALL_HISTORY > 0) {
clearMissedCalls()
Expand Down

0 comments on commit 377126b

Please sign in to comment.