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