Merge pull request #600 from takagimeow/cleanup-unused-args

Remove newsResourceTitle from AnalyticsHelper.logNewsResourceOpened method
pull/671/head
Milosz Moczkowski 2 years ago committed by GitHub
commit 2b2f6d48ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ fun AnalyticsHelper.logScreenView(screenName: String) {
)
}
fun AnalyticsHelper.logNewsResourceOpened(newsResourceId: String, newsResourceTitle: String) {
fun AnalyticsHelper.logNewsResourceOpened(newsResourceId: String) {
logEvent(
event = AnalyticsEvent(
type = "news_resource_opened",

@ -69,7 +69,6 @@ fun LazyGridScope.newsFeed(
onClick = {
analyticsHelper.logNewsResourceOpened(
newsResourceId = userNewsResource.id,
newsResourceTitle = userNewsResource.title,
)
launchCustomChromeTab(context, resourceUrl, backgroundColor)
},

@ -56,7 +56,6 @@ fun LazyListScope.userNewsResourceCardItems(
onClick = {
analyticsHelper.logNewsResourceOpened(
newsResourceId = userNewsResource.id,
newsResourceTitle = userNewsResource.title,
)
when (onItemClick) {
null -> launchCustomChromeTab(context, resourceUrl, backgroundColor)

Loading…
Cancel
Save