am 0c58c370: Fix redrawing chips with recipientEditText onSizeChanged when it has left and right padding.
* commit '0c58c3707163765a65847d07ada963627eccb671':
Fix redrawing chips with recipientEditText onSizeChanged when it has left and right padding.
diff --git a/src/com/android/ex/chips/RecipientEditTextView.java b/src/com/android/ex/chips/RecipientEditTextView.java
index 5d5216e..9633587 100644
--- a/src/com/android/ex/chips/RecipientEditTextView.java
+++ b/src/com/android/ex/chips/RecipientEditTextView.java
@@ -928,7 +928,8 @@
Rect bounds;
for (DrawableRecipientChip chip : chips) {
bounds = chip.getBounds();
- if (getWidth() > 0 && bounds.right - bounds.left > getWidth()) {
+ if (getWidth() > 0 && bounds.right - bounds.left >
+ getWidth() - getPaddingLeft() - getPaddingRight()) {
// Need to redraw that chip.
replaceChip(chip, chip.getEntry());
}