mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
searchBar fix 2
This commit is contained in:
parent
0c44abee90
commit
9e4e5a6ab1
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user