diff --git a/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt b/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt index 9dc2d2fb2..7f554b470 100644 --- a/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt +++ b/app-nia-catalog/src/main/java/com/google/samples/apps/niacatalog/ui/Catalog.kt @@ -524,7 +524,9 @@ fun NiaCatalog() { NiaTopicTag( expanded = expandedTopic == "Topic 1", followed = firstFollowed, - onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 1" else null }, + onDropMenuToggle = { show -> + expandedTopic = if (show) "Topic 1" else null + }, onFollowClick = { firstFollowed = true }, onUnfollowClick = { firstFollowed = false }, onBrowseClick = {}, @@ -537,7 +539,9 @@ fun NiaCatalog() { NiaTopicTag( expanded = expandedTopic == "Topic 2", followed = secondFollowed, - onDropMenuToggle = { show -> expandedTopic = if (show) "Topic 2" else null }, + onDropMenuToggle = { show -> + expandedTopic = if (show) "Topic 2" else null + }, onFollowClick = { secondFollowed = true }, onUnfollowClick = { secondFollowed = false }, onBrowseClick = {}, diff --git a/core-ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt b/core-ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt index d29d022c3..00b6a0a93 100644 --- a/core-ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt +++ b/core-ui/src/main/java/com/google/samples/apps/nowinandroid/core/ui/NewsResourceCard.kt @@ -278,7 +278,9 @@ fun NewsResourceTopics( NiaTopicTag( expanded = expandedTopic == topic.id, followed = true, // ToDo: Check if topic is followed - onDropMenuToggle = { show -> expandedTopic = if (show) topic.id else null }, + onDropMenuToggle = { show -> + expandedTopic = if (show) topic.id else null + }, onFollowClick = { }, // ToDo onUnfollowClick = { }, // ToDo onBrowseClick = { }, // ToDo