From fc970d7cdf140176e05d2e2695a3a8fd29af4435 Mon Sep 17 00:00:00 2001 From: Bnyro Date: Thu, 27 Apr 2023 19:39:22 +0200 Subject: [PATCH] Fix crash in Subscriptions fragment --- .../com/github/libretube/ui/fragments/SubscriptionsFragment.kt | 2 ++ 1 file changed, 2 insertions(+) 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 af9e7486a..f0ce00705 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 @@ -174,6 +174,8 @@ class SubscriptionsFragment : Fragment() { private suspend fun initChannelGroups() { channelGroups = DatabaseHolder.Database.subscriptionGroupsDao().getAll() + val binding = _binding ?: return + binding.chipAll.isChecked = true binding.channelGroups.removeAllViews()