-
Notifications
You must be signed in to change notification settings - Fork 136
Support tapping on links #8980
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
Support tapping on links #8980
Conversation
Generated by 🚫 dangerJS |
|
You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code: |
Codecov ReportPatch and project coverage have no change.
Additional details and impacted files@@ Coverage Diff @@
## feature/new_privacy_screen #8980 +/- ##
=============================================================
Coverage 43.07% 43.08%
Complexity 3950 3950
=============================================================
Files 825 824 -1
Lines 43420 43410 -10
Branches 5667 5665 -2
=============================================================
Hits 18704 18704
+ Misses 23067 23057 -10
Partials 1649 1649
☔ View full report in Codecov by Sentry. |
…row' into issue/8939_support_link_actions
…row' into issue/8939_support_link_actions
…to issue/8939_support_link_actions
atorresveiga
left a comment
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.
LGTM! ![]()
| onCookiePolicyClicked: () -> Unit, | ||
| modifier: Modifier = Modifier | ||
| ) { | ||
| val privacyText = |
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.
np: more than half of this composable is about creating the string with the links, maybe we can move this logic into a separate function. WDYT?
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.
Thanks! Good idea, but because of the recent design change and lack of this text - I removed this method.
| PrivacySettingsPolicesScreen( | ||
| onPrivacyPolicyClicked = { | ||
| AnalyticsTracker.track(AnalyticsEvent.PRIVACY_SETTINGS_PRIVACY_POLICY_LINK_TAPPED) | ||
| ChromeCustomTabUtils.launchUrl( | ||
| requireActivity(), | ||
| AppUrls.AUTOMATTIC_PRIVACY_POLICY | ||
| ) | ||
| }, | ||
| onCookiePolicyClicked = { | ||
| AnalyticsTracker.track( | ||
| AnalyticsEvent.PRIVACY_SETTINGS_THIRD_PARTY_TRACKING_INFO_LINK_TAPPED | ||
| ) | ||
| ChromeCustomTabUtils.launchUrl( | ||
| requireActivity(), | ||
| AppUrls.AUTOMATTIC_COOKIE_POLICY | ||
| ) | ||
| } | ||
| ) |
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've decided not to introduce VM to such a simple view.
Closes: #8939
Description
This PR ads behavior of opening correct links upon user clicks.
Testing instructions
Open Privacy Settings:
Images/gif
Mon.May.8.20.22.28.CEST.2023.mp4
RELEASE-NOTES.txtif necessary.