mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Ensure TalkBack announces the selected playback speed in the UI menu
Issue: google/ExoPlayer#10298 #minor-release PiperOrigin-RevId: 457991028
This commit is contained in:
parent
14f75c162f
commit
bf86b603a3
1 changed files with 7 additions and 1 deletions
|
|
@ -1817,7 +1817,13 @@ public class StyledPlayerControlView extends FrameLayout {
|
||||||
if (position < playbackSpeedTexts.length) {
|
if (position < playbackSpeedTexts.length) {
|
||||||
holder.textView.setText(playbackSpeedTexts[position]);
|
holder.textView.setText(playbackSpeedTexts[position]);
|
||||||
}
|
}
|
||||||
holder.checkView.setVisibility(position == selectedIndex ? VISIBLE : INVISIBLE);
|
if (position == selectedIndex) {
|
||||||
|
holder.itemView.setSelected(true);
|
||||||
|
holder.checkView.setVisibility(VISIBLE);
|
||||||
|
} else {
|
||||||
|
holder.itemView.setSelected(false);
|
||||||
|
holder.checkView.setVisibility(INVISIBLE);
|
||||||
|
}
|
||||||
holder.itemView.setOnClickListener(
|
holder.itemView.setOnClickListener(
|
||||||
v -> {
|
v -> {
|
||||||
if (position != selectedIndex) {
|
if (position != selectedIndex) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue