hide the playbutton on media items in library- and searchfragment
This commit is contained in:
		| @ -2,6 +2,7 @@ package org.mosad.teapod.util.adapter | ||||
|  | ||||
| import android.view.LayoutInflater | ||||
| import android.view.ViewGroup | ||||
| import androidx.core.view.isVisible | ||||
| import androidx.recyclerview.widget.RecyclerView | ||||
| import com.bumptech.glide.Glide | ||||
| import org.mosad.teapod.databinding.ItemMediaBinding | ||||
| @ -30,6 +31,7 @@ class MediaItemAdapter(private val items: List<ItemMedia>) : RecyclerView.Adapte | ||||
|     inner class MediaViewHolder(val binding: ItemMediaBinding) : | ||||
|         RecyclerView.ViewHolder(binding.root) { | ||||
|         init { | ||||
|             binding.imageEpisodePlay.isVisible = false // hide the play button for media items | ||||
|             binding.root.setOnClickListener { | ||||
|                 onItemClick?.invoke( | ||||
|                     items[bindingAdapterPosition].id, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user