mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
Merge pull request #3822 from SajalRG/search-collapse-fix
Disable search closing when user press back while playing video
This commit is contained in:
commit
c6c36145a1
@ -354,7 +354,9 @@ class MainActivity : BaseActivity() {
|
|||||||
this@MainActivity.onBackPressedDispatcher.onBackPressed()
|
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)
|
return super.onCreateOptionsMenu(menu)
|
||||||
|
Loading…
Reference in New Issue
Block a user