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