Merge pull request #3822 from SajalRG/search-collapse-fix

Disable search closing when user press back while playing video
This commit is contained in:
Bnyro 2023-05-24 15:28:27 +02:00 committed by GitHub
commit c6c36145a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)