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

Return NONE accessibility role if null is passed. #38613

Closed
wants to merge 1 commit into from

Conversation

cipolleschi
Copy link
Contributor

Summary:
The value string of the ReactAccessibilityDelegate's fromValue method is marked as Nullable, however the null case is not handled.

This change handle the null case setting the accesssibility role to NONE.

Changelog:

[Android][Fixed] - Set the accessibility role to NONE when a null string is passed to fromValue

Differential Revision: D47752098

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Jul 25, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

@analysis-bot
Copy link

analysis-bot commented Jul 25, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,889,622 +2
android hermes armeabi-v7a 7,940,148 -2
android hermes x86 9,287,504 -1
android hermes x86_64 9,191,334 +0
android jsc arm64-v8a 9,479,629 -2
android jsc armeabi-v7a 8,422,708 -1
android jsc x86 9,463,205 +2
android jsc x86_64 9,780,107 +4

Base commit: 0f48e86
Branch: main

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 25, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: 075972ccc7bdbed8737f2c3a27add0cc398ef1d4
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 25, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: 4fd519baca3787cc7a420f9fadd04626f59e7af2
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 25, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: 75406f5849261346db5ff4e64432b34e62fcc121
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

cipolleschi added a commit to cipolleschi/react-native that referenced this pull request Jul 25, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: e32eb5620dc097a8ba6eda2539ce3e97e39bb373
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: b33b39c4c9fe95b59581569d32bc408c864bab52
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47752098

@github-actions
Copy link

This pull request was successfully merged by @cipolleschi in 0f48e86.

When will my fix make it into a release? | Upcoming Releases

@github-actions github-actions bot added the Merged This PR has been merged. label Jul 26, 2023
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: e8a44bdd8874e996d8127cb2ee29e5135210b196
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: e8a44bdd8874e996d8127cb2ee29e5135210b196
billnbell pushed a commit to billnbell/react-native that referenced this pull request Jul 29, 2023
Summary:
Pull Request resolved: facebook#38613

The `value` string of the ReactAccessibilityDelegate's `fromValue` method is marked as `Nullable`, however the `null` case is not handled.

This change handle the `null` case setting the accesssibility role to NONE.

## Changelog:
[Android][Fixed] - Set the accessibility role to `NONE` when a `null` string is passed to `fromValue`

Reviewed By: cortinico

Differential Revision: D47752098

fbshipit-source-id: e8a44bdd8874e996d8127cb2ee29e5135210b196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants