mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
fix: crash when adding/removing channel to group
This commit is contained in:
parent
ae01341bfa
commit
5dc0e98054
@ -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