From b9bb9f8286c741dd57bcc9e00355d0b1c17fb1b5 Mon Sep 17 00:00:00 2001 From: Daniel <61970262+rozari0@users.noreply.github.com> Date: Wed, 16 Nov 2022 11:16:32 +0600 Subject: [PATCH] Create ChannelFragment.kt --- .../libretube/ui/fragments/ChannelFragment.kt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 d96041758..567518f46 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 @@ -185,19 +185,19 @@ class ChannelFragment : BaseFragment() { } private fun setupTabs(tabs: List?) { - tabs?.firstOrNull { it.name == "Playlists" }?.let { + tabs?.firstOrNull { it.name == "playlists" }?.let { binding.playlists.visibility = View.VISIBLE } - tabs?.firstOrNull { it.name == "Channels" }?.let { + tabs?.firstOrNull { it.name == "channels" }?.let { binding.channels.visibility = View.VISIBLE } - tabs?.firstOrNull { it.name == "Livestreams" }?.let { + tabs?.firstOrNull { it.name == "livestreams" }?.let { binding.livestreams.visibility = View.VISIBLE } - tabs?.firstOrNull { it.name == "Shorts" }?.let { + tabs?.firstOrNull { it.name == "shorts" }?.let { binding.shorts.visibility = View.VISIBLE } @@ -215,16 +215,16 @@ class ChannelFragment : BaseFragment() { } } binding.channels.id -> { - tabs?.first { it.name == "Channels" }?.let { loadTab(it) } + tabs?.first { it.name == "channels" }?.let { loadTab(it) } } binding.playlists.id -> { - tabs?.first { it.name == "Playlists" }?.let { loadTab(it) } + tabs?.first { it.name == "playlists" }?.let { loadTab(it) } } binding.livestreams.id -> { - tabs?.first { it.name == "Livestreams" }?.let { loadTab(it) } + tabs?.first { it.name == "livestreams" }?.let { loadTab(it) } } binding.shorts.id -> { - tabs?.first { it.name == "Shorts" }?.let { loadTab(it) } + tabs?.first { it.name == "shorts" }?.let { loadTab(it) } } } }