diff options
author | Ihab Awad <ihab@google.com> | 2015-01-07 22:46:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-07 22:46:51 +0000 |
commit | 79f89492d79d1dd4a02057b7590ec837da84fdb1 (patch) | |
tree | 23cb6478674b96c4d82621ee73a8924e8eb4e5d5 | |
parent | a36487c2f6c54c4318f96e86f19a0ae97d404d52 (diff) | |
parent | 116bd22af536353feea22733563bcf9b70a5a07e (diff) |
am af39d544: am 2aea3bcb: am 7dca62f4: Merge "Announce incoming calls in all cases" into lmp-mr1-dev
* commit 'af39d5443b927b3eb25ebd22dca5b56ac12769f8':
Announce incoming calls in all cases
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardFragment.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index 4bc985578..75d995f4c 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -557,6 +557,15 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr } else { mCallStateVideoCallIcon.setVisibility(View.GONE); } + + if (state == Call.State.INCOMING) { + if (callStateLabel != null) { + getView().announceForAccessibility(callStateLabel); + } + if (mPrimaryName.getText() != null) { + getView().announceForAccessibility(mPrimaryName.getText()); + } + } } @Override |