From cfc824799f8c885fcae702661707e9fa3f1552b1 Mon Sep 17 00:00:00 2001 From: FineFindus Date: Mon, 20 May 2024 17:37:43 +0200 Subject: [PATCH] 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. --- .../java/com/github/libretube/ui/fragments/ChannelFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt index e05ca22fb..0916e5469 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt @@ -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)