How to know if item is highlighted by TalkBack frame?
I’m working on accessibility issues in my app, written in Kotlin using Jetpack Compose. I have a bug that I think I can solve if I could know when a UI component is highlighted with a TalkBack frame – in some cases, when an item’s status is selected
(an id of that item), and is also highlighted by the TalkBack frame, and I double tap it again (meaning I select it again), the selected
variable on another item gets set to the previously selected id.
What I want to achieve is making a select count only if this is the item that is currently highlighted by TalkBack. For this, I would like to know how to decide programmatically if and item is currently highlighted.