dotnet / dotnet/android-libraries
AccessibilityNodeInfoCompat.Checked data type changed from bool to int with 1.17.0
- Dominant language
- C#
- Stars
- 317
- Forks
- 73
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 17
Description
### Android framework version
net9.0-android
### Affected platform version
vs2026
### Description
We found an issue when upgrading to Xamarin.AndroidX.Core 1.17.0.
The problem is AccessibilityNodeInfoCompat.Checked changed from a bool (v1.16.0.3) to an int (1.17.0).
```C#
IToggleProvider provider = GetProvider();
if (nodeInfo.Checked.GetType() == typeof(int))
{
// Needed for core 1.17+
//
nodeInfo.Checked = (int)? //what to do here?
}
else if (nodeInfo.Checked.GetType() == typeof(bool))
{
// Works for core < 1.17
nodeInfo.Checked = provider.ToggleState == ToggleState.On;
}
```
Is this expected?
### Steps to Reproduce
Upgrade package to the latest 1.17 version.
### Did you find any workaround?
_No response_
### Relevant log output
```shell
```
Contributor guide
Assessment
This issue has not been assessed yet.