ChromeVox: Keep track of the last spoken locale.
This change further refines the locale announcement given when switching between locales within the same language. We announce the locale once when switching to more specific locales, e.g. en -> en-us. We never announce the locale when switching to less specific locales, e.g. en-us -> en. Finally, all subsequent switches from en -> en-us will not be announced. The above logic only applies when we stay within the same language. If the language changes e.g. en -> pt, then the above state will reset. This change also adds a test to confirm behavior. We also removed a test since it can be merged into the new test. same language. Bug: 1098548 Change-Id: Ie7015f68bc6c6c747065d815697584f5fd642092 AX-Relnotes: Refine voice switching behavior when switching within the Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2466497 Commit-Queue: Akihiro Ota <akihiroota@chromium.org> Reviewed-by:David Tseng <dtseng@chromium.org> Cr-Commit-Position: refs/heads/master@{#816295}
Showing
Please register or sign in to comment