-
Notifications
You must be signed in to change notification settings - Fork 927
PM-17660: Improve the way we remember the annotated string #5257
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
PM-17660: Improve the way we remember the annotated string #5257
Conversation
|
Great job, no security vulnerabilities found in this Pull Request |
f02db04 to
ab1c28a
Compare
| ), | ||
| isChecked = isChecked, | ||
| onCheckedChange = onCheckedChange, | ||
| contentDescription = "ReceiveMarketingEmailsToggle", |
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 stumbled upon this and it looks like this was supposed to be a test tag and it got updated to a content description in a previous PR by mistake. Small bit of cleanup here.
| * @see Int.toAnnotatedString | ||
| */ | ||
| @Composable | ||
| fun annotatedStringResource( |
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 left the int extension in place but this function feels more compose idiomatic. Kinda like the existing stringResource function.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5257 +/- ##
==========================================
+ Coverage 82.55% 82.63% +0.07%
==========================================
Files 698 676 -22
Lines 51735 51089 -646
Branches 6957 6954 -3
==========================================
- Hits 42712 42217 -495
+ Misses 6711 6558 -153
- Partials 2312 2314 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ab1c28a to
5506bcf
Compare
5506bcf to
2ab5465
Compare
2ab5465 to
35db468
Compare
|
Thanks @SaintPatrck |

🎟️ Tracking
PM-17660
📔 Objective
This Pr updates the
toAnnotatedStringextension in order to better optimize the logic and ensure it updates at appropriate times.📸 Screenshots
⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes