mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
searchBar fix 2
This commit is contained in:
parent
0c44abee90
commit
9e4e5a6ab1
@ -186,8 +186,10 @@ class MainActivity : AppCompatActivity() {
|
||||
})
|
||||
|
||||
searchView.setOnCloseListener {
|
||||
onBackPressed()
|
||||
true
|
||||
if (navController.currentDestination?.id == R.id.searchFragment) {
|
||||
onBackPressed()
|
||||
}
|
||||
false
|
||||
}
|
||||
return super.onCreateOptionsMenu(menu)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user