-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Adds urlspan to support link semantics in Android #162419
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
Conversation
ff82452 to
3ac3558
Compare
| result.addAction(AccessibilityNodeInfo.ACTION_SET_TEXT); | ||
| } | ||
|
|
||
| if (semanticsNode.hasFlag(Flag.IS_BUTTON) || semanticsNode.hasFlag(Flag.IS_LINK)) { |
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.
adding this was a workaround so that people get a hint that this ANI is clickable. Since now the talkback will pronounce the urlspan, this is no longer needed
gmackall
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, just a question about magic numbers
| update.insert(std::make_pair(0, node0)); | ||
|
|
||
| std::vector<uint8_t> expected_buffer(192); | ||
| std::vector<uint8_t> expected_buffer(196); |
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 haven't had a chance to review much c++ in the engine (nor the chance to write much in a long time), so sorry if this is a dumb question, but is this a standard practice in our tests?
Is there a reason we don't make kBytesPerNode extern and make this test 4 * delegate->kBytesPerNode? Can you at least leave a comment here describing the magic number if we don't want to do that?
fixes #102535
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.