added comment to document what happens on tapping news resource card.

pull/706/head
gururani-abhishek 1 year ago
parent bbc80bb0e2
commit f6bdba08d9

@ -31,7 +31,7 @@ import com.google.samples.apps.nowinandroid.core.model.data.UserNewsResource
* [UserNewsResource]s. * [UserNewsResource]s.
* *
* [onToggleBookmark] defines the action invoked when a user wishes to bookmark an item * [onToggleBookmark] defines the action invoked when a user wishes to bookmark an item
* Default action launches an intent matching the card. * When a news resource card is tapped it will open the news resource URL in a Chrome Custom Tab.
*/ */
fun LazyListScope.userNewsResourceCardItems( fun LazyListScope.userNewsResourceCardItems(
items: List<UserNewsResource>, items: List<UserNewsResource>,

Loading…
Cancel
Save