Recyclerview item losing focus on NotifyItemChange

313 Views Asked by At

When NotifyItemChanged() is called, the item that currently has accessibility focus loses it and the accessibility focus goes to the top of the screen. I have debugged onBindViewHolder and it doesn’t change the focus. Is there something else that NotifyItemChanged() calls after this that would affect accessibility focus?

1

There are 1 best solutions below

0
On

I'm not sure why, but sending a payload will keep the focus on the item. Even just an empty string does the trick.

adapter.notifyItemChanged(position, "")