make sure album icon is hidden on re-used recyclerview viewholder

This commit is contained in:
Matthieu 2020-11-02 22:36:25 +01:00
parent c65a121e28
commit ae96961dbe
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ class SearchDiscoverFragment : Fragment() {
val post = posts[position]
if(post.type?.contains("album") == true) {
holder.albumIcon.visibility = View.VISIBLE
} else {
holder.albumIcon.visibility = View.GONE
}
ImageConverter.setSquareImageFromURL(holder.postView, post.thumb, holder.postPreview)
holder.postPreview.setOnClickListener {