Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[Jetcaster] Use trailing lambda
  • Loading branch information
yrezgui committed Dec 15, 2020
commit 6fbc02ad9eb23abb1c47dbbd74d9cc3348b02127
Original file line number Diff line number Diff line change
Expand Up @@ -285,20 +285,17 @@ private fun CategoryPodcastRow(
modifier = modifier,
contentPadding = PaddingValues(start = Keyline1, top = 8.dp, end = Keyline1, bottom = 24.dp)
) {
itemsIndexed(
items = podcasts,
itemContent = { index: Int, (podcast, _, isFollowed): PodcastWithExtraInfo ->
TopPodcastRowItem(
podcastTitle = podcast.title,
podcastImageUrl = podcast.imageUrl,
isFollowed = isFollowed,
onToggleFollowClicked = { onTogglePodcastFollowed(podcast.uri) },
modifier = Modifier.preferredWidth(128.dp)
)
itemsIndexed(items = podcasts) { index: Int, (podcast, _, isFollowed): PodcastWithExtraInfo ->
TopPodcastRowItem(
podcastTitle = podcast.title,
podcastImageUrl = podcast.imageUrl,
isFollowed = isFollowed,
onToggleFollowClicked = { onTogglePodcastFollowed(podcast.uri) },
modifier = Modifier.preferredWidth(128.dp)
)

if (index < lastIndex) Spacer(Modifier.preferredWidth(24.dp))
}
)
if (index < lastIndex) Spacer(Modifier.preferredWidth(24.dp))
}
}
}

Expand Down