mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-20 00:55:20 +01:00
Fix crashing on About on release build
This commit is contained in:
parent
40da78af8b
commit
46dc5eb58e
9 changed files with 66 additions and 43 deletions
|
@ -59,6 +59,11 @@ class ContributorAdapter(
|
|||
return contributors.size
|
||||
}
|
||||
|
||||
fun swapData(it: List<Contributor>) {
|
||||
contributors = it
|
||||
notifyDataSetChanged()
|
||||
}
|
||||
|
||||
inner class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
|
||||
val title: TextView = itemView.findViewById(R.id.title)
|
||||
val text: TextView = itemView.findViewById(R.id.text)
|
||||
|
@ -68,7 +73,7 @@ class ContributorAdapter(
|
|||
title.text = contributor.name
|
||||
text.text = contributor.summary
|
||||
Glide.with(image.context)
|
||||
.load(contributor.profileImage)
|
||||
.load(contributor.image)
|
||||
.error(R.drawable.ic_account)
|
||||
.placeholder(R.drawable.ic_account)
|
||||
.dontAnimate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue