Skip to content

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

Merge pull request #524 from andhiratobing/main

Milosz Moczkowski893ac390a600
diff --cc feature/foryou/src/main/java/com/google/samples/apps/nowinandroid/feature/foryou/ForYouScreen.kt
index ef714308b,f26cc71dc..d80bb4f01
--- 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,9 -301,11 +301,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)
) {
- items(onboardingUiState.topics) {
+ items(
+ items = onboardingUiState.topics,
+ key = { it.topic.id }
+ ) {
SingleTopicButton(
name = it.topic.name,
topicId = it.topic.id,