From cfe578154bd230f8b302b3dbf3415d8f59bcc6e7 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Wed, 13 Mar 2024 18:21:56 +0100 Subject: [PATCH] feat: support for albums channel tab, drop discontinued channels tab --- app/src/main/java/com/github/libretube/obj/ChannelTabs.kt | 2 +- .../java/com/github/libretube/ui/fragments/ChannelFragment.kt | 2 +- app/src/main/res/layout/fragment_channel.xml | 4 ++-- app/src/main/res/values/strings.xml | 1 + 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/github/libretube/obj/ChannelTabs.kt b/app/src/main/java/com/github/libretube/obj/ChannelTabs.kt index 9a7c91857..6e6787715 100644 --- a/app/src/main/java/com/github/libretube/obj/ChannelTabs.kt +++ b/app/src/main/java/com/github/libretube/obj/ChannelTabs.kt @@ -10,5 +10,5 @@ sealed class ChannelTabs( object Playlists : ChannelTabs("playlists", R.id.playlists) object Shorts : ChannelTabs("shorts", R.id.shorts) object Livestreams : ChannelTabs("livestreams", R.id.livestreams) - object Channels : ChannelTabs("channels", R.id.channels) + object Albums : ChannelTabs("albums", R.id.albums) } 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 2870742d7..c6a54dff5 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 @@ -54,7 +54,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() { ChannelTabs.Shorts, ChannelTabs.Livestreams, ChannelTabs.Playlists, - ChannelTabs.Channels + ChannelTabs.Albums ) private var channelTabs: List = emptyList() private var nextPages = Array(5) { null } diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 94d9665aa..1b1aab0e7 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -156,9 +156,9 @@ android:text="@string/playlists" /> + android:text="@string/albums" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 7c28defae..9225fd21f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -73,6 +73,7 @@ Comments (%1$s) Replies Channels + Albums All Playlists OK