TapTargetView icon indicating copy to clipboard operation
TapTargetView copied to clipboard

Can't be read / closed with TalkBack

Open cristan opened this issue 4 years ago • 2 comments

  • [x ] I have verified the issue exists on the latest version
  • [ x] I am able to reproduce it

Version used: 1.13.0

Android version: 9

The announcement can't be read via TalkBack. Even worse: it can't be closed via TalkBack too! (it can, but only with the back button and since there is no indication what's going on, a blind person has no idea they should do this). This means that this library basically renders the app unusable for blind people.

The easiest fix would be to simply not show anything when touch navigation is enabled:

fun Context.isTouchExplorationEnabled(): Boolean {
    // can be null during unit tests
    val am = getSystemService(ACCESSIBILITY_SERVICE) as AccessibilityManager?
    return am?.isTouchExplorationEnabled ?: false
}

Actually making it work would be a very nice option. With it, you'd have to set the contentDescription to View and allow closing it by clicking on it when touch exploration is enabled.

cristan avatar Jun 05 '20 08:06 cristan

it would be amazing if the content of the feature can be read from talkback, I tried right now and it's a frustrating experience, imagine from blind people.

EliuTimana avatar Aug 29 '20 21:08 EliuTimana

Are there any updates on this issue? I would like to add that the missing content description also generates a warning in Google's pre-launch report that I'm not able to solve.

flauschtrud avatar Nov 24 '21 08:11 flauschtrud