mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
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:
parent
ee8fd82c94
commit
cfc824799f
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user