mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
Fix channel page to display selected chip content
This commit is contained in:
parent
34211eee4c
commit
946fe6b91f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user