Add a callback to RecipientEditTextView for whenever it creates a chip.

BUG 14279330

Change-Id: Ia50dee1ce0bd35eb913ee360bf6814dbb66baf76
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 042dd2a..fdf58a6 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -1830,10 +1830,17 @@
                 return null;
             }
         }
+        onChipCreated(entry);
         return chipText;
     }
 
     /**
+     * A callback for subclasses to use to know when a chip was created with the
+     * given RecipientEntry.
+     */
+    protected void onChipCreated(RecipientEntry entry) {}
+
+    /**
      * When an item in the suggestions list has been clicked, create a chip from the
      * contact information of the selected item.
      */