Merge pull request #5486 from abGit9/Show_Channel_Page

fix: don't show history when closing video on channel page
This commit is contained in:
Bnyro 2024-01-15 18:03:24 +01:00 committed by GitHub
commit 4cd6552c38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,7 @@ class MainActivity : BaseActivity() {
private fun isSearchInProgress(): Boolean {
if (!::navController.isInitialized) return false
val id = navController.currentDestination?.id ?: return false
return id in listOf(R.id.searchFragment, R.id.searchResultFragment)
return id in listOf(R.id.searchFragment, R.id.searchResultFragment, R.id.channelFragment)
}
override fun invalidateMenu() {