On the screen with the message list, after a small refactor, strange behavior appeared when data is updated. The user can expand a row to see the action button, but after the set of items changes, the state starts to “move” between rows.
RecyclerView list of messages.id identifier and a title text.Shuffle button:
Archive action button must be invoked for the message whose row is expanded.Archive.Shuffle several times.id, even if the list is rearranged.Archive handler must receive the current item for the tapped row after any list updates.1.3.2, AppCompat 1.7.0, Core KTX 1.13.1DiffUtil via ListAdapterActivity, no ComposeUse line comments to explain the problem, its impact, the fix and how to test it.