Skip to content

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.

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

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
Contributor

@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.

3 participants