mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20:30 +05:30
fix: long pressing plays wrong channel group
This commit is contained in:
parent
e5e127a044
commit
2874254496
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user