Conversation
Sliders were exposed as `android.widget.SeekBar` with range info, but nothing allowed an assistive technology to change their value. TalkBack's "adjust slider" reading control only ever performs `ACTION_SCROLL_FORWARD` and `ACTION_SCROLL_BACKWARD` (see `NumberAdjustor` in its source), which the framework's own `SeekBar` also uses, so expose them for nodes supporting `Increment` and `Decrement` and map them to those actions rather than to scrolling. Also expose `ACTION_SET_PROGRESS` for nodes that support `SetValue` on a numeric range, and map it to `SetValue` with a numeric value. A native `SeekBar` isn't clickable, so on double-tap TalkBack falls back to synthesizing a tap at the center of the control, which is how users jump to the middle of the range. Don't add the focus-only `ACTION_CLICK` to such controls so the first double-tap behaves the same way. Finally, skip the accessibility-enabled JNI check when raising an empty set of events, as happens for actions that are handled but produce their events through a later tree update.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.