Skip to content

Commit

Permalink
improve accessibility
Browse files Browse the repository at this point in the history
  • Loading branch information
punksta committed Mar 28, 2020
1 parent d1622bf commit 7e01a16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ public void setMinVolume(int minVolume) {

public void setVolumeName(CharSequence string) {
mTitle.setText(string);
seekBar.setContentDescription(getContext().getString(R.string.volume_switch, string));
}

public void setCurrentVolume(int progress) {
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@

<string name="delete_profile_button">Прменить %1$s профиль</string>
<string name="apply_profile_button">Удалить %1$s профиль</string>
<string name="volume_switch">настройка громкости типа %1$s</string>
</resources>
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@

<string name="delete_profile_button">Delete %1$s profile</string>
<string name="apply_profile_button">Delete %1$s profile</string>

<string name="volume_switch">%1$s volume type level</string>
</resources>

0 comments on commit 7e01a16

Please sign in to comment.