Skip to content

Commit

Permalink
Merge pull request #6529 from Bnyro/master
Browse files Browse the repository at this point in the history
fix: crash when adding/removing channel to group
  • Loading branch information
Bnyro committed Sep 25, 2024
2 parents 97bbf44 + 5dc0e98 commit 20ac535
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
Expand Down

0 comments on commit 20ac535

Please sign in to comment.