diff --git a/app/src/main/java/com/github/libretube/ui/adapters/AddChannelToGroupAdapter.kt b/app/src/main/java/com/github/libretube/ui/adapters/AddChannelToGroupAdapter.kt index ceb5d20b8..6b4b7c6bb 100644 --- a/app/src/main/java/com/github/libretube/ui/adapters/AddChannelToGroupAdapter.kt +++ b/app/src/main/java/com/github/libretube/ui/adapters/AddChannelToGroupAdapter.kt @@ -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) } } }