Merge pull request #6529 from Bnyro/master

fix: crash when adding/removing channel to group
This commit is contained in:
Bnyro 2024-09-25 13:32:48 +02:00 committed by GitHub
commit 20ac5357bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,12 +28,10 @@ class AddChannelToGroupAdapter(
groupCheckbox.setOnCheckedChangeListener { _, isChecked ->
if (isChecked) {
channelGroup.channels = channelGroup.channels + channelId
channelGroup.channels += channelId
} else {
channelGroup.channels = channelGroup.channels - channelId
channelGroup.channels -= channelId
}
notifyItemChanged(position)
}
}
}