cashapp / paparazzi

Render your Android screens without a physical device or emulator
https://cashapp.github.io/paparazzi/
Apache License 2.0
2.22k stars 210 forks source link

Fix when clearAndSetSemantics is used to render content desc #1445

Closed geoff-powell closed 1 month ago

geoff-powell commented 1 month ago

Fixes https://github.com/cashapp/paparazzi/issues/1440

Explanation of why semantics aren't cleared in unmergedNodes. https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/SemanticsModifierNode.kt;l=38-50?q=isClearingSemantics

geoff-powell commented 1 month ago

Confirmed with other permutations nested at different layers that this displays exactly like talkback reads.