Call RecipientChipDeletedListener when chip is deleted via X.
Focusing on chip shows X on the right side of chip, which deletes the
chip upon click. RecipientChipDeletedListener was not called for this
event.
RecipientChipDeletedListener is added in ag/865863.
Bug: 27044172, 28845664
Change-Id: I2794b5c747839c7d050d4a9d0cfe3ce5cf8aa57e
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 6f1bd12..5eb5342 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -2409,6 +2409,9 @@
@Override
public void onChipDelete() {
if (mSelectedChip != null) {
+ if (mRecipientChipDeletedListener != null) {
+ mRecipientChipDeletedListener.onRecipientChipDeleted(mSelectedChip.getEntry());
+ }
removeChip(mSelectedChip);
}
dismissPopups();