mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Fix that channel group items get lost on scrolling
This commit is contained in:
parent
9409b53343
commit
909de96160
@ -32,6 +32,7 @@ class SubscriptionGroupChannelsAdapter(
|
||||
holder.binding.apply {
|
||||
subscriptionChannelName.text = channel.name
|
||||
ImageHelper.loadImage(channel.avatar, subscriptionChannelImage)
|
||||
channelIncluded.setOnCheckedChangeListener(null)
|
||||
channelIncluded.isChecked = group.channels.contains(channelId)
|
||||
channelIncluded.setOnCheckedChangeListener { _, isChecked ->
|
||||
if (isChecked) group.channels.add(channelId) else group.channels.remove(channelId)
|
||||
|
Loading…
Reference in New Issue
Block a user