Skip to content

Conversation

@chunhtai
Copy link
Contributor

@chunhtai chunhtai commented Oct 13, 2025

fixes #172982

fixes it in the android side in case Android provide an API to denote link without URL in the future

@chunhtai chunhtai requested a review from a team as a code owner October 13, 2025 20:17
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@chunhtai chunhtai marked this pull request as draft October 13, 2025 20:17
@github-actions github-actions bot added platform-android Android applications specifically engine flutter/engine related. See also e: labels. team-android Owned by Android platform team labels Oct 13, 2025
@chunhtai chunhtai changed the title Adds clickable span for link = true [WIP] Adds clickable span for link = true Oct 13, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request correctly implements clickable spans for semantic nodes that are links but do not have a linkUrl, by checking for a tap action instead. The changes in AccessibilityBridge and AccessibilityStringBuilder are logical and well-structured. I've added a couple of minor suggestions to align the new code with the Google Java Style Guide, focusing on using @FunctionalInterface, making a field final, and removing a redundant modifier.

@chunhtai chunhtai force-pushed the issues/172982-android branch 2 times, most recently from 52bdb41 to f6972ca Compare October 14, 2025 19:50
@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. a: text input Entering text in a text field or keyboard related problems and removed platform-android Android applications specifically engine flutter/engine related. See also e: labels. team-android Owned by Android platform team labels Oct 14, 2025
@chunhtai chunhtai changed the title [WIP] Adds clickable span for link = true [WIP] Use button semantics flag for inline tappable text in Android Oct 14, 2025
@chunhtai chunhtai force-pushed the issues/172982-android branch from 9876afe to 9e67b37 Compare October 15, 2025 18:14
@github-actions github-actions bot added platform-android Android applications specifically engine flutter/engine related. See also e: labels. team-android Owned by Android platform team and removed a: text input Entering text in a text field or keyboard related problems framework flutter/packages/flutter repository. See also f: labels. labels Oct 15, 2025
@chunhtai chunhtai changed the title [WIP] Use button semantics flag for inline tappable text in Android Android treats link without URL semantics node as button Oct 15, 2025
@chunhtai chunhtai marked this pull request as ready for review October 15, 2025 18:19
@chunhtai chunhtai force-pushed the issues/172982-android branch from 9e67b37 to adb967e Compare October 16, 2025 17:02
@jesswrd jesswrd requested a review from ash2moon October 21, 2025 21:51
@chunhtai chunhtai force-pushed the issues/172982-android branch from adb967e to a288f74 Compare October 21, 2025 22:25
@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Oct 21, 2025

autosubmit label was removed for flutter/flutter/176959, because - The status or check suite Linux tool_integration_tests_5_7 has failed. Please fix the issues identified (or deflake) before re-applying this label.

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2025
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 21, 2025
@auto-submit
Copy link
Contributor

auto-submit bot commented Oct 21, 2025

autosubmit label was removed for flutter/flutter/176959, because - The status or check suite Mac mac_unopt has failed. Please fix the issues identified (or deflake) before re-applying this label.

@chunhtai chunhtai added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 22, 2025
@auto-submit auto-submit bot added this pull request to the merge queue Oct 22, 2025
Merged via the queue into flutter:master with commit a1ac766 Oct 22, 2025
188 checks passed
@flutter-dashboard flutter-dashboard bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Oct 22, 2025
reidbaker pushed a commit to AbdeMohlbi/flutter that referenced this pull request Dec 10, 2025
)

<!--
Thanks for filing a pull request!
Reviewers are typically assigned within a week of filing a request.
To learn more about code review, see our documentation on Tree Hygiene:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
-->

fixes flutter#172982

fixes it in the android side in case Android provide an API to denote
link without URL in the future


<!-- Links -->
[Contributor Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview
[Tree Hygiene]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md
[test-exempt]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests
[Flutter Style Guide]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md
[Features we expect every widget to implement]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement
[CLA]: https://cla.developers.google.com/
[flutter/tests]: https://github.com/flutter/tests
[breaking change policy]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes
[Discord]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md
[Data Driven Fixes]:
https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine flutter/engine related. See also e: labels. platform-android Android applications specifically team-android Owned by Android platform team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android][a11y] Widgets that set Semantics.link but not Semantics.linkUrl are not described as anything

2 participants