searchBar fix 2

This commit is contained in:
Nephys222 2022-08-02 19:18:44 +05:00
parent 0c44abee90
commit 9e4e5a6ab1

View File

@ -186,8 +186,10 @@ class MainActivity : AppCompatActivity() {
}) })
searchView.setOnCloseListener { searchView.setOnCloseListener {
if (navController.currentDestination?.id == R.id.searchFragment) {
onBackPressed() onBackPressed()
true }
false
} }
return super.onCreateOptionsMenu(menu) return super.onCreateOptionsMenu(menu)
} }