make sure album icon is hidden on re-used recyclerview viewholder
This commit is contained in:
parent
c65a121e28
commit
ae96961dbe
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue