fix: crash when adding/removing channel to group

This commit is contained in:
Bnyro 2024-09-25 13:32:24 +02:00
parent ae01341bfa
commit 5dc0e98054

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)
}
}
}