diff options
author | Qi Wang <wangqi@google.com> | 2016-03-02 07:14:31 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-03-02 07:14:31 +0000 |
commit | cad3cb891621400e292120e78484d461d14b8ac1 (patch) | |
tree | 330aa4418133c508b64b22e0faef482f8ab1e077 /InCallUI/src/com | |
parent | 5681b99cd082ffa31178ff6159b4dcb28b16980a (diff) | |
parent | c82ffa7cf29df64f5309f06199e7757ec0b2b9b4 (diff) |
Merge "Provide better talkback for buttons in calling." into nyc-dev am: ae2b330d68
am: c82ffa7cf2
* commit 'c82ffa7cf29df64f5309f06199e7757ec0b2b9b4':
Provide better talkback for buttons in calling.
Diffstat (limited to 'InCallUI/src/com')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonFragment.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonFragment.java b/InCallUI/src/com/android/incallui/CallButtonFragment.java index 9859f4e7b..5a25b6a7b 100644 --- a/InCallUI/src/com/android/incallui/CallButtonFragment.java +++ b/InCallUI/src/com/android/incallui/CallButtonFragment.java @@ -433,6 +433,9 @@ public class CallButtonFragment public void setMute(boolean value) { if (mMuteButton.isSelected() != value) { mMuteButton.setSelected(value); + mMuteButton.setContentDescription(getContext().getString( + value ? R.string.onscreenMuteText_selected + : R.string.onscreenMuteText_unselected)); } } @@ -789,6 +792,9 @@ public class CallButtonFragment boolean changed = ((InCallActivity) getActivity()).showDialpadFragment(value, animate); if (changed) { mShowDialpadButton.setSelected(value); + mShowDialpadButton.setContentDescription(getContext().getString( + value /* show */ ? R.string.onscreenShowDialpadText_unselected + : R.string.onscreenShowDialpadText_selected)); } } } |