-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWN-8614 - Add new amplitude events, and modify current #1850
Conversation
app/src/main/java/org/p2p/wallet/history/analytics/HistoryAnalytics.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/p2p/wallet/home/analytics/HomeAnalytics.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/p2p/wallet/home/analytics/HomeAnalytics.kt
Outdated
Show resolved
Hide resolved
@@ -424,6 +432,20 @@ class HomePresenter( | |||
} | |||
} | |||
|
|||
override fun onSellClicked() { | |||
sellAnalytics.logSellSubmitClicked() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can inject analytics inside Fragment to remove jumping from presenter to view just for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more clear, yeah for now it's dump, but maybe we will need to add some logic in future xD
it can not be avoided ))
} | ||
|
||
override fun onOpenTwitterClicked() { | ||
analytics.logSettingItemClicked(SETTING_ITEM_TWITTER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
inject analytics inside fragment
makes Contract cleaner
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
Jira Ticket
https://p2pvalidator.atlassian.net/browse/PWN-8614