Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c4f5a2f authored by Wenyi Wang's avatar Wenyi Wang Committed by Android (Google) Code Review
Browse files

Merge "Changes in comments" into ub-contactsdialer-a-dev

parents f880f3dc e04ea602
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -126,11 +126,8 @@ public class MultiSelectContactsListFragment extends DefaultContactBrowseListFra
                    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