fix(android): share fill target identity matching

Merged
TH
2d ago
+48-19

Summary

Android fill pre-reads and live text reads now match a resource ID using the selected package and published class when supplied. This lets a Compose container match the button role published in the snapshot. Empty-field recovery uses the same matcher to check that the resource ID is unique across classes in its package.

The optional recycled-list pre-read change is deferred.

Before / after

A Compose button labeled Submit moved and another button occupied its recorded point. Reading the selected button returned other button on main (a4b31e34d6). The same read returns Submit at this head.

Validation

At c8eb12df8544bad38a249b4d2d1aef915014f211, all 26 tests in the text-read and empty-target test files passed. The regression test failed on the base revision with the neighboring button’s text. Self-reviewed the diff. Live device verification was skipped as requested. CI checks and independent review are pending.

Closes #5223


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.