diff options
author | Ihab Awad <ihab@google.com> | 2015-01-07 22:35:26 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-01-07 22:35:26 +0000 |
commit | fd392f4371bb4f4aece81e14336f062dc326a38d (patch) | |
tree | 082c547e73e519c7968f30cf0aa250698b2f0e0f | |
parent | 6a918d7c3e1ac02fbdb200fbc6c9e802a438f4a7 (diff) | |
parent | 020760658a78fcef65aaf9ed6f80d6117b2795a7 (diff) |
Merge "Announce incoming calls in all cases" into lmp-mr1-dev
-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 |