mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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 ->
|
groupCheckbox.setOnCheckedChangeListener { _, isChecked ->
|
||||||
if (isChecked) {
|
if (isChecked) {
|
||||||
channelGroup.channels = channelGroup.channels + channelId
|
channelGroup.channels += channelId
|
||||||
} else {
|
} else {
|
||||||
channelGroup.channels = channelGroup.channels - channelId
|
channelGroup.channels -= channelId
|
||||||
}
|
}
|
||||||
|
|
||||||
notifyItemChanged(position)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user