Set content description on ambien volume sliders
Added content descriptions to the UI component to improve accessibility for TalkBack users. Flag: EXEMPT bugfix Bug: 397134669 Test: manually test with TalkBack Change-Id: If0c40d7b91061da5e100e49e71279adb6f69e77f
This commit is contained in:
@@ -318,9 +318,16 @@ public class AmbientVolumePreference extends PreferenceGroup implements AmbientV
|
||||
if (side == SIDE_LEFT) {
|
||||
slider.setTitle(
|
||||
getContext().getString(R.string.bluetooth_ambient_volume_control_left));
|
||||
slider.setSliderContentDescription(getContext().getString(
|
||||
R.string.bluetooth_ambient_volume_control_left_description));
|
||||
} else if (side == SIDE_RIGHT) {
|
||||
slider.setTitle(
|
||||
getContext().getString(R.string.bluetooth_ambient_volume_control_right));
|
||||
slider.setSliderContentDescription(getContext().getString(
|
||||
R.string.bluetooth_ambient_volume_control_right_description));
|
||||
} else {
|
||||
slider.setSliderContentDescription(getContext().getString(
|
||||
R.string.bluetooth_ambient_volume_control_description));
|
||||
}
|
||||
mSideToSliderMap.put(side, slider);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user