Merge pull request #2143 from Kruna1Pate1/fix/channel-navigation

Fix channel page to display selected chip content
This commit is contained in:
Bnyro 2022-11-29 17:32:11 +01:00 committed by GitHub
commit 957eda88e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,6 +216,12 @@ class ChannelFragment : BaseFragment() {
} }
} }
} }
// Load selected chip content if it's not videos tab.
possibleTabs.firstOrNull { binding.tabChips.checkedChipId == it.chipId }?.let {
val tab = tabs.first { tab -> tab.name == it.identifierName }
loadTab(tab)
}
} }
private fun loadTab(tab: ChannelTab) { private fun loadTab(tab: ChannelTab) {