Commit ca8cc43a authored by Geoffrey Métais's avatar Geoffrey Métais

Video groups: set default icon on view recycling

(cherry picked from commit 42082e7b)
parent 339cd0e0
......@@ -14,9 +14,11 @@ import org.videolan.libvlc.util.AndroidUtil
import org.videolan.vlc.BR
import org.videolan.vlc.R
import org.videolan.vlc.databinding.VideogroupItemBinding
import org.videolan.vlc.gui.helpers.SelectorViewHolder
import org.videolan.vlc.gui.helpers.UiTools
import org.videolan.vlc.util.UPDATE_SELECTION
......@@ -53,6 +55,10 @@ class VideoGroupsAdapter (val actor: SendChannel<VideoGroupAction>) : PagedListA
override fun onViewRecycled(holder: ViewHolder) {
holder.binding.setVariable(BR.cover, UiTools.getDefaultVideoDrawable(holder.itemView.context))
inner class ViewHolder(binding: VideogroupItemBinding) : SelectorViewHolder<VideogroupItemBinding>(binding) {
init {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment