Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ddd29468 authored by Angela Wang's avatar Angela Wang Committed by Android (Google) Code Review
Browse files

Merge "Set content description on ambien volume sliders" into main

parents 0abe3f4e d16be090
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -174,6 +174,12 @@
    <string name="bluetooth_ambient_volume_control_left">Left</string>
    <!-- Connected devices settings. The text to show the control is for right side device. [CHAR LIMIT=30] -->
    <string name="bluetooth_ambient_volume_control_right">Right</string>
    <!-- Connected devices settings. Content description for unified ambient control slider. [CHAR LIMIT=NONE] -->
    <string name="bluetooth_ambient_volume_control_description">Surroundings</string>
    <!-- Connected devices settings. Content description for left ambient control slider. [CHAR LIMIT=NONE] -->
    <string name="bluetooth_ambient_volume_control_left_description">Left surroundings</string>
    <!-- Connected devices settings. Content description for right ambient control slider.. [CHAR LIMIT=NONE] -->
    <string name="bluetooth_ambient_volume_control_right_description">Right surroundings</string>
    <!-- Connected devices settings. Content description for a button, that mute ambient volume [CHAR_LIMIT=NONE] -->
    <string name="bluetooth_ambient_volume_mute">Mute surroundings</string>
    <!-- Connected devices settings. Content description for a button, that unmute ambient volume [CHAR LIMIT=NONE] -->
+7 −0
Original line number Diff line number Diff line
@@ -339,9 +339,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);
    }