From 2874254496d68b08d1debe6b50f28acfefc29e35 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Fri, 8 Sep 2023 16:51:09 +0200 Subject: [PATCH] fix: long pressing plays wrong channel group --- .../com/github/libretube/ui/fragments/SubscriptionsFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/github/libretube/ui/fragments/SubscriptionsFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/SubscriptionsFragment.kt index 3f6b2e265..dca14c4ed 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/SubscriptionsFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/SubscriptionsFragment.kt @@ -242,7 +242,7 @@ class SubscriptionsFragment : Fragment() { private fun List.filterByGroup(groupIndex: Int): List { 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