am 7c4f5a2f: Merge "Changes in comments" into ub-contactsdialer-a-dev
* commit '7c4f5a2fa1c291bfd3ed23874c54613bb9362a6d':
Changes in comments
diff --git a/src/com/android/contacts/list/MultiSelectContactsListFragment.java b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
index 2465fb5..43f8ea9 100644
--- a/src/com/android/contacts/list/MultiSelectContactsListFragment.java
+++ b/src/com/android/contacts/list/MultiSelectContactsListFragment.java
@@ -126,11 +126,8 @@
mCheckBoxListListener.onStartDisplayingCheckBoxes();
}
getAdapter().toggleSelectionOfContactId(Long.valueOf(contactId));
- // Sending an accessibility event of TYPE_VIEW_CLICKED and forcing Talkback to be
- // performed on the checkbox.
- // We need to:
- // 1. consider the difference between position and adjPosition;
- // 2. make sure the list item is not null before sending the event.
+ // Manually send clicked event if there is a checkbox.
+ // See b/24098561. TalkBack will not read it otherwise.
final int adjPosition = position + getListView().getHeaderViewsCount();
if (getListView() != null && adjPosition < getListView().getChildCount()) {
getListView().getChildAt(adjPosition).sendAccessibilityEvent(AccessibilityEvent