Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix live region logic#14081

Merged
dnfield merged 1 commit intoflutter:masterfrom
dnfield:live_region
Dec 2, 2019
Merged

Fix live region logic#14081
dnfield merged 1 commit intoflutter:masterfrom
dnfield:live_region

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Dec 2, 2019

Fixes flutter/flutter#45930

We're currently only allow the live region announcement to process if the liveRegion flag has changed. This works fine for a snackbar appearing once but not so well for e.g. a label that you want announced when it updates.

This also allows us to simplify the logic for text fields, since they use liveRegion when focused.

/cc @darrenaustin

Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dnfield dnfield merged commit ea721eb into flutter:master Dec 2, 2019
@dnfield dnfield deleted the live_region branch December 2, 2019 23:49
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 3, 2019
@matthew-carroll
Copy link
Contributor

FYI - it looks like PR is missing tests.

@dnfield
Copy link
Contributor Author

dnfield commented Dec 3, 2019

Yes. We have no good way to test this unfortunately other than manually. We'd have to try to capture the output of TalkBack on a real device to test this.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

liveRegion not working as expected on Android

5 participants