fix: use string ressource for channel video tab

Fixes an issue, were the Channel video tab name was still using the
`VIDEOS_TAB_KEY` as it display name.
This commit is contained in:
FineFindus 2024-05-20 17:37:43 +02:00
parent ee8fd82c94
commit cfc824799f
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

View File

@ -240,6 +240,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
tabList.removeAll { tab -> tabList.removeAll { tab ->
tab.name != VIDEOS_TAB_KEY tab.name != VIDEOS_TAB_KEY
} }
tabList[0] = ChannelTab(getString(tabNamesMap[VIDEOS_TAB_KEY]!!), "")
response.tabs.forEach { channelTab -> response.tabs.forEach { channelTab ->
val tabName = tabNamesMap[channelTab.name]?.let { getString(it) } val tabName = tabNamesMap[channelTab.name]?.let { getString(it) }
?: channelTab.name.replaceFirstChar(Char::titlecase) ?: channelTab.name.replaceFirstChar(Char::titlecase)