Deprecate one of the setChipDimen methods.
2 stage. I will update Gmail in a CL and then remove the deprecated method.
Change-Id: I06078c4a71022176f9097360a98eff269ce334db
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 4d78660..4a7ee85 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -420,6 +420,7 @@
* @param alternatesLayout
* @param alternatesSelectedLayout
* @param padding Padding around the text in a chip
+ * @deprecated
*/
public void setChipDimensions(Drawable chipBackground, Drawable chipBackgroundPressed,
Drawable invalidChip, Drawable chipDelete, Bitmap defaultContact, int moreResource,
@@ -437,6 +438,22 @@
mInvalidChipBackground = invalidChip;
}
+ public void setChipDimensions(Drawable chipBackground, Drawable chipBackgroundPressed,
+ Drawable invalidChip, Drawable chipDelete, Bitmap defaultContact, int moreResource,
+ int alternatesLayout, float chipHeight, float padding,
+ float chipFontSize) {
+ mChipBackground = chipBackground;
+ mChipBackgroundPressed = chipBackgroundPressed;
+ mChipDelete = chipDelete;
+ mChipPadding = (int) padding;
+ mAlternatesLayout = alternatesLayout;
+ mDefaultContactPhoto = defaultContact;
+ mMoreString = moreResource;
+ mChipHeight = chipHeight;
+ mChipFontSize = chipFontSize;
+ mInvalidChipBackground = invalidChip;
+ }
+
@Override
public void onSizeChanged(int width, int height, int oldw, int oldh) {
super.onSizeChanged(width, height, oldw, oldh);