Skip to content
This repository was archived by the owner on Feb 17, 2020. It is now read-only.

Commit fd08dbc

Browse files
committed
Add placeholder and error image for speaker images
1 parent 5ef66f9 commit fd08dbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/net/squanchy/support/widget/SpeakerView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,9 @@ abstract class SpeakerView @JvmOverloads constructor(
9797
throw IllegalStateException("Unable to access the ImageLoader, it hasn't been initialized yet")
9898
}
9999

100-
photoView.setImageDrawable(null)
101100
imageLoader.load(photoUrl)
101+
.placeholder(R.drawable.ic_avatar_placeholder)
102+
.error(R.drawable.ic_no_avatar)
102103
.into(photoView)
103104
}
104105

0 commit comments

Comments
 (0)