Skip to content

Commit

Permalink
fix: use string ressource for channel video tab
Browse files Browse the repository at this point in the history
Fixes an issue, were the Channel video tab name was still using the
`VIDEOS_TAB_KEY` as it display name.
  • Loading branch information
FineFindus committed May 20, 2024
1 parent ee8fd82 commit cfc8247
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
tabList.removeAll { tab ->
tab.name != VIDEOS_TAB_KEY
}
tabList[0] = ChannelTab(getString(tabNamesMap[VIDEOS_TAB_KEY]!!), "")
response.tabs.forEach { channelTab ->
val tabName = tabNamesMap[channelTab.name]?.let { getString(it) }
?: channelTab.name.replaceFirstChar(Char::titlecase)
Expand Down

0 comments on commit cfc8247

Please sign in to comment.