fix: going back from a video shows search history instead of playlist

This commit is contained in:
Bnyro 2024-03-11 18:41:22 +01:00
parent 85d9cb3a46
commit 4736271c81

View File

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