Sitelet https://github.com/KeepSafe/TapTargetView/issues/370
Skip to content

Can't be read / closed with TalkBack #370

Description

@cristan
  • [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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions