mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Disable search closing when user press back while playing video
Issue #1965: * Search for something * Play the video * Clicking back btn would close the search also Fix: Disable auto close of search in onMenuItemActionCollapse method call. Search will close when search fragment is removed. Known Issues: Search will still close when player fragment is closed.
This commit is contained in:
parent
03c5c4763c
commit
eeeca08910
@ -354,7 +354,9 @@ class MainActivity : BaseActivity() {
|
||||
this@MainActivity.onBackPressedDispatcher.onBackPressed()
|
||||
}
|
||||
|
||||
return true
|
||||
// Suppress collapsing of search view here.
|
||||
// It will close when search fragment will close, so its safe to return false here
|
||||
return false
|
||||
}
|
||||
})
|
||||
return super.onCreateOptionsMenu(menu)
|
||||
|
Loading…
Reference in New Issue
Block a user