Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snackbar not detected by accessibility services #100

Open
iahvector opened this issue Mar 20, 2015 · 0 comments
Open

Snackbar not detected by accessibility services #100

iahvector opened this issue Mar 20, 2015 · 0 comments

Comments

@iahvector
Copy link

A snackbar should fire an accessibility event when shown to be read by accessibility like toasts.
As a work around, I add this event listener to all toasts, but this event type was added in API level 16 and I didn't have the chance to test it on an earlier device.

snackbarEventListener = new EventListenerAdapter() {
            @Override
            public void onShow(Snackbar snackbar) {
                snackbar.setContentDescription(snackbar.getText());
                snackbar.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT);
            }
        };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant