In the attachments screen, each item shows a file name, a selected indicator, and a delete button. After a recent PR, the behavior became unstable: row speech and deletion work incorrectly in a number of list update scenarios.
ListAdapter.submitList(...) with a new item order and after changing the selected flag.a1 / report.pdf / selected=falseb2 / photo.jpg / selected=truesubmitList(...):
selected=true for a1;selected=false for b2.contentDescription for both cards.contentDescription matches the current bound Attachment after any list update.selected changes.1.3.21.7.0findViewById is usedRecyclerView and ListAdapterAttachment.id is unique and stable between list updatesUse line comments to explain the problem, its impact, the fix and how to test it.