Skip to content

Conversation

@fabriziocucci
Copy link
Contributor

Summary:
Changelog: [Android][Fixed] - Reset OnClickListener to null when recycling views to avoid accessibility tools finding views with incorrect state


This diff removes the shouldResetOnClickListenerWhenRecyclingView feature flag since it has been tested in FB4A for a month with defaultValue: true.

The flag was introduced to reset OnClickListener to null when recycling views on Android to avoid accessibility tools finding views with incorrect state after recycling. This behavior is now the default.

Changes:

  • Removed the flag definition from ReactNativeFeatureFlags.config.js
  • Removed the conditional check in BaseViewManager.java, now view.setOnClickListener(null) is always called unconditionally
  • Removed the override from ReactNativeFeatureFlagsOverrides_Facebook_Android.kt
  • Regenerated all feature flag files via js1 featureflags --update

Reviewed By: javache

Differential Revision: D90384358

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 12, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 12, 2026

@fabriziocucci has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90384358.

…book#55118)

Summary:

Changelog: [Android][Fixed] - Reset OnClickListener to null when recycling views to avoid accessibility tools finding views with incorrect state

---

This diff removes the `shouldResetOnClickListenerWhenRecyclingView` feature flag since it has been tested in FB4A for a month with `defaultValue: true`.

The flag was introduced to reset `OnClickListener` to null when recycling views on Android to avoid accessibility tools finding views with incorrect state after recycling. This behavior is now the default.

Changes:
- Removed the flag definition from `ReactNativeFeatureFlags.config.js`
- Removed the conditional check in `BaseViewManager.java`, now `view.setOnClickListener(null)` is always called unconditionally
- Removed the override from `ReactNativeFeatureFlagsOverrides_Facebook_Android.kt`
- Regenerated all feature flag files via `js1 featureflags --update`

Reviewed By: javache

Differential Revision: D90384358
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @fabriziocucci in 04bdebc

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jan 13, 2026
@meta-codesync
Copy link

meta-codesync bot commented Jan 13, 2026

This pull request has been merged in 04bdebc.

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. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants