feat: support for albums channel tab, drop discontinued channels tab

This commit is contained in:
Bnyro 2024-03-13 18:21:56 +01:00
parent 3607aaaec0
commit cfe578154b
4 changed files with 5 additions and 4 deletions

View File

@ -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)
}

View File

@ -54,7 +54,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
ChannelTabs.Shorts,
ChannelTabs.Livestreams,
ChannelTabs.Playlists,
ChannelTabs.Channels
ChannelTabs.Albums
)
private var channelTabs: List<ChannelTab> = emptyList()
private var nextPages = Array<String?>(5) { null }

View File

@ -156,9 +156,9 @@
android:text="@string/playlists" />
<com.google.android.material.chip.Chip
android:id="@+id/channels"
android:id="@+id/albums"
style="@style/channelChip"
android:text="@string/channels" />
android:text="@string/albums" />
</com.google.android.material.chip.ChipGroup>

View File

@ -73,6 +73,7 @@
<string name="comments_count">Comments (%1$s)</string>
<string name="replies">Replies</string>
<string name="channels">Channels</string>
<string name="albums">Albums</string>
<string name="all">All</string>
<string name="playlists">Playlists</string>
<string name="okay">OK</string>