Fix search option overflow when searchView expanded

This commit is contained in:
Krunal Patel 2022-11-21 09:45:02 +05:30
parent 1c03396a2b
commit 3661660dd1

View File

@ -269,6 +269,7 @@ class MainActivity : BaseActivity() {
searchViewModel.setQuery(null) searchViewModel.setQuery(null)
navController.navigate(R.id.searchFragment) navController.navigate(R.id.searchFragment)
} }
item.setShowAsAction(MenuItem.SHOW_AS_ACTION_ALWAYS or MenuItem.SHOW_AS_ACTION_COLLAPSE_ACTION_VIEW)
return true return true
} }