-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Android] Fix gestures in Label Spans #14410
Conversation
src/Controls/src/Core/Platform/Android/Extensions/FormattedStringExtensions.cs
Show resolved
Hide resolved
Can we add a device test for this ? |
Mnn, without a UI Test can validate if the PlatformView contains GestureRecognizers etc but cannot validate exactly the same scenario from the sample. |
src/Controls/src/Core/Platform/Android/Extensions/FormattedStringExtensions.cs
Outdated
Show resolved
Hide resolved
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.
Is it possible to add tests? Not sure if there is a way to get the regions in tests, or maybe this is just a wait for UI tests to tap the screen.
if (View.GestureRecognizers.Count == 0) | ||
if (View.GestureController.CompositeGestureRecognizers.Count == 0) |
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.
@PureWeen is this correct?
Once we have iOS and WinUI merged then we will reassess. Ideally if we backport we would backport all platforms as one backport PR. |
This appears fixed on Android, but not for iOS? |
This is the iOs related PR #15544 |
Description of Change
Fix gestures in Label Spans on Android.
To test/validate the changes, open the .NET MAUI Gallery and navigate to the Label page. Tap the Span with the text "Click Me". If the Span changes the TextColor, is working as expected.
Issues Fixed
Fixes #4734
Fixes #8004