fix anime updates

This commit is contained in:
jmir1 2021-05-25 00:57:51 +02:00
parent c3ac2ffca5
commit 3bda339172
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ class AnimeUpdatesHolder(private val view: View, private val adapter: AnimeUpdat
// Set cover
val radius = itemView.context.resources.getDimension(R.dimen.card_radius)
binding.animeCover.clear()
binding.animeCover.loadAny(item.anime) {
binding.animeCover.loadAny(item.anime.thumbnail_url) {
transformations(RoundedCornersTransformation(radius))
}
}

View file

@ -14,7 +14,7 @@ class AnimeUpdatesItem(episode: Episode, val anime: Anime, header: DateSectionIt
BaseEpisodeItem<AnimeUpdatesHolder, DateSectionItem>(episode, header) {
override fun getLayoutRes(): Int {
return R.layout.updates_item
return R.layout.anime_updates_item
}
override fun createViewHolder(view: View, adapter: FlexibleAdapter<IFlexible<RecyclerView.ViewHolder>>): AnimeUpdatesHolder {