Skip to content

A fully functional Android app built entirely with Kotlin and Jetpack Compose

Merge pull request #543 from android/mb/trailing-commas

Márton Braun11fbf53f1289
diff --cc feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
index d80bb4f01,aef60817f..f13cbdb1a
--- a/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
+++ b/feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
@@@ -301,12 -302,9 +302,12 @@@ private fun TopicSelection
// The maximum of these two bounds is therefore a valid upper bound in all cases.
.heightIn(max = max(240.dp, with(LocalDensity.current) { 240.sp.toDp() }))
.fillMaxWidth()
- .testTag(topicSelectionTestTag)
+ .testTag(topicSelectionTestTag),
) {
- items(onboardingUiState.topics) {
+ items(
+ items = onboardingUiState.topics,
+ key = { it.topic.id }
+ ) {
SingleTopicButton(
name = it.topic.name,
topicId = it.topic.id,