Commit c8af1e3
Add Android 17 safety comment for JNI-written static field
Summary:
AppearanceModule.invalidatePlatformColorCache is set from native via JNI (configurePlatformColorCacheInvalidationHook.cpp). Android 17 crashes if JNI modifies a static final field. Since Kotlin `val` compiles to static final, this field must remain `var`. Added a comment to prevent accidental refactoring.
See https://developer.android.com/about/versions/17/behavior-changes-17#static-final-fields
Changelog: [Internal]
Differential Revision: D1008318021 parent dfddcc9 commit c8af1e3
1 file changed
Lines changed: 3 additions & 0 deletions
File tree
- packages/react-native/ReactAndroid/src/main/java/com/facebook/react/modules/appearance
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
0 commit comments