Merge pull request #951 from Nephys222/Nephys

searchBar fix 2
This commit is contained in:
Bnyro 2022-08-03 09:06:52 +02:00 committed by GitHub
commit 5b4218045b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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