We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 26a9dfe + adeb06c commit cec83dcCopy full SHA for cec83dc
core/ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt
@@ -156,12 +156,12 @@ fun NewsResourceAuthors(
156
authors: List<Author>
157
) {
158
if (authors.isNotEmpty()) {
159
- // Only display first author for now
160
- val author = authors[0]
+ // display all authors
+ val authorNameFormatted =
161
+ authors.joinToString(separator = ", ") { author -> author.name }
162
+ .uppercase(Locale.getDefault())
163
- val authorNameFormatted = author.name.uppercase(Locale.getDefault())
-
164
- val authorImageUrl = author.imageUrl
+ val authorImageUrl = authors[0].imageUrl
165
166
val authorImageModifier = Modifier
167
.clip(CircleShape)
0 commit comments