Skip to content

[release/10.0.1xx-sr7] Revert - Fix TalkBack not correctly narrating RadioButtons with Content#35694

Merged
PureWeen merged 1 commit into
release/10.0.1xx-sr7from
backport/pr-35625-to-release/10.0.1xx-sr7
Jun 2, 2026
Merged

[release/10.0.1xx-sr7] Revert - Fix TalkBack not correctly narrating RadioButtons with Content#35694
PureWeen merged 1 commit into
release/10.0.1xx-sr7from
backport/pr-35625-to-release/10.0.1xx-sr7

Conversation

@kubaflo
Copy link
Copy Markdown
Contributor

@kubaflo kubaflo commented Jun 1, 2026

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Backport of #35625 to release/10.0.1xx-sr7.
/cc @PureWeen

…nt (#35625)

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->

### Issue details:
A regression was introduced by PR
#[34521](#34521) on Android. It set
RadioButton accessibility metadata (ClassName, Checkable, Checked) on
AccessibilityNodeInfoCompat during TalkBack. The bool setter for Checked
no longer exists in AndroidX Core 1.17.x (API changed), causing a
MissingMethodException at runtime. This mainly affects .NET 10 MAUI
packages that compile against AndroidX Core 1.16.0.3.

### Description of changes:
Fully reverts PR #[34521](#34521).
Removes the IRadioButton accessibility block (ClassName, Checkable,
Checked) and the cached s_radioButtonClassName field from
SemanticExtensions.cs. Reverts RadioButton.UpdateSemantics back to using
ContentAsString() and removes the GetSemanticDescriptionFromContent()
and TryGetSemanticDescription() helpers. Also removes the two device
tests added for issue
#[34322](#34322) and their helper
methods.

### Issues Fixed

<!-- Please make sure that there is a bug logged for the issue being
fixed. The bug should describe the problem and how to reproduce it. -->

Fixes #35584

<!--
Are you targeting main? All PRs should target the main branch unless
otherwise noted.
-->

---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Jakub Florkowski <42434498+kubaflo@users.noreply.github.com>

(cherry picked from commit 1739e2f)
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 35694

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 35694"

@github-actions github-actions Bot added area-controls-radiobutton RadioButton, RadioButtonGroup platform/android labels Jun 1, 2026
@kubaflo
Copy link
Copy Markdown
Contributor Author

kubaflo commented Jun 1, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@kubaflo
Copy link
Copy Markdown
Contributor Author

kubaflo commented Jun 2, 2026

Failures are unrelated

@kubaflo kubaflo enabled auto-merge (squash) June 2, 2026 14:40
@PureWeen PureWeen disabled auto-merge June 2, 2026 21:23
@PureWeen PureWeen merged commit 2c9ecab into release/10.0.1xx-sr7 Jun 2, 2026
169 of 173 checks passed
@PureWeen PureWeen deleted the backport/pr-35625-to-release/10.0.1xx-sr7 branch June 2, 2026 21:23
@github-actions github-actions Bot added this to the .NET 10 SR7 milestone Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants