fix: long pressing plays wrong channel group

This commit is contained in:
Bnyro 2023-09-08 16:51:09 +02:00
parent e5e127a044
commit 2874254496

View File

@ -242,7 +242,7 @@ class SubscriptionsFragment : Fragment() {
private fun List<StreamItem>.filterByGroup(groupIndex: Int): List<StreamItem> {
if (groupIndex == 0) return this
val group = channelGroups.getOrNull(selectedFilterGroup - 1)
val group = channelGroups.getOrNull(groupIndex - 1)
return filter {
val channelId = it.uploaderUrl.orEmpty().toID()
group?.channels?.contains(channelId) != false