From cd72227f331b862d70c1271b1c9a5f3a1ab30bee Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 20 Sep 2013 15:08:29 -0700 Subject: Read back contact information in in-call screen This changes talkback behavior so that it behaves the same way as in 4.3, other than reading the unnecessary description of the contact's photo Bug: 10844641 Change-Id: I2a2829d1a9650bf18d3b1d98d6ddc860fe9f8d27 --- .../src/com/android/incallui/CallCardFragment.java | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'InCallUI/src/com/android/incallui/CallCardFragment.java') diff --git a/InCallUI/src/com/android/incallui/CallCardFragment.java b/InCallUI/src/com/android/incallui/CallCardFragment.java index e6c5bce2b..5ea6e918f 100644 --- a/InCallUI/src/com/android/incallui/CallCardFragment.java +++ b/InCallUI/src/com/android/incallui/CallCardFragment.java @@ -29,11 +29,14 @@ import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view.ViewStub; +import android.view.accessibility.AccessibilityEvent; import android.widget.ImageView; import android.widget.TextView; import com.android.services.telephony.common.Call; +import java.util.List; + /** * Fragment for call card. */ @@ -494,4 +497,30 @@ public class CallCardFragment extends BaseFragment eventText = event.getText(); + int size = eventText.size(); + view.dispatchPopulateAccessibilityEvent(event); + // if no text added write null to keep relative position + if (size == eventText.size()) { + eventText.add(null); + } + } } -- cgit v1.2.3