Close search when navigating away from recycle bin tab

This commit is contained in:
Ensar Sarajčić 2023-07-27 15:56:04 +02:00
parent dda0a9aa87
commit 3c3be72c90

View file

@ -178,7 +178,7 @@ class MainActivity : SimpleActivity() {
main_tabs_holder.onTabSelectionChanged(
tabUnselectedAction = {
updateBottomTabItemColors(it.customView, false)
if (it.position == 1) {
if (it.position == 1 || it.position == 2) {
main_menu.closeSearch()
}
},