mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30: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> {
|
private fun List<StreamItem>.filterByGroup(groupIndex: Int): List<StreamItem> {
|
||||||
if (groupIndex == 0) return this
|
if (groupIndex == 0) return this
|
||||||
|
|
||||||
val group = channelGroups.getOrNull(selectedFilterGroup - 1)
|
val group = channelGroups.getOrNull(groupIndex - 1)
|
||||||
return filter {
|
return filter {
|
||||||
val channelId = it.uploaderUrl.orEmpty().toID()
|
val channelId = it.uploaderUrl.orEmpty().toID()
|
||||||
group?.channels?.contains(channelId) != false
|
group?.channels?.contains(channelId) != false
|
||||||
|
Loading…
Reference in New Issue
Block a user