@@ -43,7 +43,7 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
// Set source name
title.text = source.name
- // Set circle letter image.
+ // Set source icon
itemView.post {
val icon = source.icon()
when {
@@ -39,12 +39,9 @@ class SourceHolder(view: View, override val adapter: SourceAdapter) :
- val icon = source.icon()
- if (icon != null) {
- image.setImageDrawable(icon)
- }
+ image.setImageDrawable(source.icon())
}