Skip to content

Commit

Permalink
keep search string when switching tab
Browse files Browse the repository at this point in the history
  • Loading branch information
Honk2 committed Jan 12, 2025
1 parent e3417ab commit b5783bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ 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])

Expand Down

0 comments on commit b5783bb

Please sign in to comment.