mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #6529 from Bnyro/master
fix: crash when adding/removing channel to group
This commit is contained in:
commit
20ac5357bf
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user