diff options
author | Ihab Awad <ihab@google.com> | 2015-01-07 22:39:25 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-01-07 22:39:25 +0000 |
commit | 08e4b749ea2c6e89cd8a096f475d0291931a34ac (patch) | |
tree | 082c547e73e519c7968f30cf0aa250698b2f0e0f | |
parent | 9f1cd00906706be5d610b241a17b5aae17dc3450 (diff) | |
parent | fd392f4371bb4f4aece81e14336f062dc326a38d (diff) |
am 7dca62f4: Merge "Announce incoming calls in all cases" into lmp-mr1-dev
* commit '7dca62f400d10983a7d5f7aa26b18235018585d0':
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 |