mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
feat: support for albums channel tab, drop discontinued channels tab
This commit is contained in:
parent
3607aaaec0
commit
cfe578154b
@ -10,5 +10,5 @@ sealed class ChannelTabs(
|
|||||||
object Playlists : ChannelTabs("playlists", R.id.playlists)
|
object Playlists : ChannelTabs("playlists", R.id.playlists)
|
||||||
object Shorts : ChannelTabs("shorts", R.id.shorts)
|
object Shorts : ChannelTabs("shorts", R.id.shorts)
|
||||||
object Livestreams : ChannelTabs("livestreams", R.id.livestreams)
|
object Livestreams : ChannelTabs("livestreams", R.id.livestreams)
|
||||||
object Channels : ChannelTabs("channels", R.id.channels)
|
object Albums : ChannelTabs("albums", R.id.albums)
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
|
|||||||
ChannelTabs.Shorts,
|
ChannelTabs.Shorts,
|
||||||
ChannelTabs.Livestreams,
|
ChannelTabs.Livestreams,
|
||||||
ChannelTabs.Playlists,
|
ChannelTabs.Playlists,
|
||||||
ChannelTabs.Channels
|
ChannelTabs.Albums
|
||||||
)
|
)
|
||||||
private var channelTabs: List<ChannelTab> = emptyList()
|
private var channelTabs: List<ChannelTab> = emptyList()
|
||||||
private var nextPages = Array<String?>(5) { null }
|
private var nextPages = Array<String?>(5) { null }
|
||||||
|
@ -156,9 +156,9 @@
|
|||||||
android:text="@string/playlists" />
|
android:text="@string/playlists" />
|
||||||
|
|
||||||
<com.google.android.material.chip.Chip
|
<com.google.android.material.chip.Chip
|
||||||
android:id="@+id/channels"
|
android:id="@+id/albums"
|
||||||
style="@style/channelChip"
|
style="@style/channelChip"
|
||||||
android:text="@string/channels" />
|
android:text="@string/albums" />
|
||||||
|
|
||||||
</com.google.android.material.chip.ChipGroup>
|
</com.google.android.material.chip.ChipGroup>
|
||||||
|
|
||||||
|
@ -73,6 +73,7 @@
|
|||||||
<string name="comments_count">Comments (%1$s)</string>
|
<string name="comments_count">Comments (%1$s)</string>
|
||||||
<string name="replies">Replies</string>
|
<string name="replies">Replies</string>
|
||||||
<string name="channels">Channels</string>
|
<string name="channels">Channels</string>
|
||||||
|
<string name="albums">Albums</string>
|
||||||
<string name="all">All</string>
|
<string name="all">All</string>
|
||||||
<string name="playlists">Playlists</string>
|
<string name="playlists">Playlists</string>
|
||||||
<string name="okay">OK</string>
|
<string name="okay">OK</string>
|
||||||
|
Loading…
Reference in New Issue
Block a user