Make delete action only triggered by delete button.
BUG 29764785
Change-Id: I4c5f4c93aad081a7267231ce2e56c08bf573c9dc
diff --git a/src/com/android/contacts/group/GroupMembersAdapter.java b/src/com/android/contacts/group/GroupMembersAdapter.java
index ae324a1..622db67 100644
--- a/src/com/android/contacts/group/GroupMembersAdapter.java
+++ b/src/com/android/contacts/group/GroupMembersAdapter.java
@@ -159,7 +159,7 @@
bindSectionHeaderAndDivider(view, position);
bindName(view, cursor);
bindPhoto(view, cursor);
- bindDeleteButton(view);
+ bindDeleteButton(view, position);
}
protected void bindSectionHeaderAndDivider(ContactListItemView view, int position) {
@@ -188,9 +188,9 @@
imageRequest);
}
- private void bindDeleteButton(final ContactListItemView view) {
+ private void bindDeleteButton(final ContactListItemView view, int position) {
if (mDisplayDeleteButtons) {
- view.getDeleteImageButton();
+ view.getDeleteImageButton(getDeleteContactListener(), position);
} else {
view.hideDeleteImageButton();
}