update MediaItem to suport dynamic size

* this is needed for dynamic span count to correctly work
* this also fixes issues with poster image cropping when the MediaItem size was < 195dp
This commit is contained in:
2022-12-03 00:05:57 +01:00
parent bbc819551b
commit 21caa8eb1b
4 changed files with 28 additions and 32 deletions

View File

@ -36,7 +36,7 @@ class MediaItemListAdapter(private val onClickListener: OnClickListener) : ListA
fun bind(item: ItemMedia) {
binding.textTitle.text = item.title
Glide.with(binding.imagePoster)
Glide.with(binding.root.context)
.load(item.posterUrl)
.into(binding.imagePoster)