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?
Asked
Active
Viewed 174 times
0
-
Please provide enough code so others can better understand or reproduce the problem. – Community Jun 19 '22 at 09:19
1 Answers
0
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, "")

BennyG
- 21
- 2