Skip to content
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

Add touch event handling in AztecText when field is disabled #1102

Merged
merged 3 commits into from
Mar 21, 2025

Conversation

danilo04
Copy link
Contributor

@danilo04 danilo04 commented Mar 18, 2025

Fix

When the AztecText is disabled (isEnabled = false), touch events aren't handled by EnhancedMovementMethod.onTouchEvent. In this PR, we handle touch events for links in Aztectext.onTouchEvent is it is disabled. Since touch events at this level are executed, we can reuse the same logic in EnhancedMovementMethod to handle touch events on links.

Test

  1. Test with client side PR

Review

@khaykov

Make sure strings will be translated:

  • If there are new strings that have to be translated, I have added them to the client's strings.xml as a part of the integration PR.

Sorry, something went wrong.

@danilo04 danilo04 added the Groundskeeping Candidates for Groundskeeping rotation label Mar 18, 2025
@khaykov
Copy link
Member

khaykov commented Mar 20, 2025

Thanks, @danilo04 ! It appears to be working as expected, but since this changes default behavior, I think we need to put behind an opt-in flag.

@danilo04 danilo04 requested a review from khaykov March 21, 2025 17:24
@danilo04
Copy link
Contributor Author

@khaykov Added flag for tap on links when aztec text is disabled.

Copy link
Member

@khaykov khaykov left a comment

Choose a reason for hiding this comment

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

Thanks, @danilo04 ! Works great 👍

@khaykov khaykov merged commit 6b18e51 into trunk Mar 21, 2025
14 checks passed
@khaykov khaykov deleted the fix/handle-link-touch-events-aztectext-disabled branch March 21, 2025 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groundskeeping Candidates for Groundskeeping rotation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants