diff options
| author | Kevin Lin <linkevin@google.com> | 2014-03-03 20:37:58 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-03-03 20:37:58 +0000 |
| commit | 57b5b6fa3d794c0ea1f517afefa871a2a32aa561 (patch) | |
| tree | 4f53b9cfaf38ea0006b41060b0b324d7aee30e96 /chips | |
| parent | ab307ee275d8a77489a687348f8b84f137515555 (diff) | |
| parent | 0c58c3707163765a65847d07ada963627eccb671 (diff) | |
| download | android_frameworks_ex-57b5b6fa3d794c0ea1f517afefa871a2a32aa561.tar.gz android_frameworks_ex-57b5b6fa3d794c0ea1f517afefa871a2a32aa561.tar.bz2 android_frameworks_ex-57b5b6fa3d794c0ea1f517afefa871a2a32aa561.zip | |
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.
Diffstat (limited to 'chips')
| -rw-r--r-- | chips/src/com/android/ex/chips/RecipientEditTextView.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chips/src/com/android/ex/chips/RecipientEditTextView.java b/chips/src/com/android/ex/chips/RecipientEditTextView.java index 5d5216e..9633587 100644 --- a/chips/src/com/android/ex/chips/RecipientEditTextView.java +++ b/chips/src/com/android/ex/chips/RecipientEditTextView.java @@ -928,7 +928,8 @@ public class RecipientEditTextView extends MultiAutoCompleteTextView implements 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()); } |
