Merge pull request #3647 from Bnyro/master

Fix crash in Subscriptions fragment
This commit is contained in:
Bnyro 2023-04-27 19:39:32 +02:00 committed by GitHub
commit aa5f2fc1a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,8 @@ class SubscriptionsFragment : Fragment() {
private suspend fun initChannelGroups() { private suspend fun initChannelGroups() {
channelGroups = DatabaseHolder.Database.subscriptionGroupsDao().getAll() channelGroups = DatabaseHolder.Database.subscriptionGroupsDao().getAll()
val binding = _binding ?: return
binding.chipAll.isChecked = true binding.chipAll.isChecked = true
binding.channelGroups.removeAllViews() binding.channelGroups.removeAllViews()