Skip to content

Commit 66eafdc

Browse files
format modification for screen search
1 parent 70498dd commit 66eafdc

File tree

1 file changed

+13
-3
lines changed
  • feature/search/src/main/java/com/google/samples/apps/nowinandroid/feature/search

1 file changed

+13
-3
lines changed

feature/search/src/main/java/com/google/samples/apps/nowinandroid/feature/search/SearchScreen.kt

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,11 @@ private fun SearchResultBody(
312312
state = state,
313313
) {
314314
if (topics.isNotEmpty()) {
315-
item(span = { GridItemSpan(maxLineSpan) }) {
315+
item(
316+
span = {
317+
GridItemSpan(maxLineSpan)
318+
},
319+
) {
316320
Text(
317321
text = buildAnnotatedString {
318322
withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {
@@ -326,7 +330,9 @@ private fun SearchResultBody(
326330
val topicId = followableTopic.topic.id
327331
item(
328332
key = "topic-$topicId", // Append a prefix to distinguish a key for news resources
329-
span = { GridItemSpan(maxLineSpan) },
333+
span = {
334+
GridItemSpan(maxLineSpan)
335+
},
330336
) {
331337
InterestsItem(
332338
name = followableTopic.topic.name,
@@ -345,7 +351,11 @@ private fun SearchResultBody(
345351
}
346352

347353
if (newsResources.isNotEmpty()) {
348-
item(span = { GridItemSpan(maxLineSpan) }) {
354+
item(
355+
span = {
356+
GridItemSpan(maxLineSpan)
357+
},
358+
) {
349359
Text(
350360
text = buildAnnotatedString {
351361
withStyle(style = SpanStyle(fontWeight = FontWeight.Bold)) {

0 commit comments

Comments
 (0)