summaryrefslogtreecommitdiffstats
path: root/chips
diff options
context:
space:
mode:
authorKevin Lin <linkevin@google.com>2014-03-03 21:25:04 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-03 21:25:04 +0000
commit30df46f9e6794df82ad5f762416d6e7fb8e71b89 (patch)
tree63777ee5b133f208ccedad1bbfecf74fe1b96348 /chips
parent53e68fc85221aca7a4bd91c7cf11785297ed7e63 (diff)
parent8fc3233b233bdfe5f46d87799ad626c4978228dd (diff)
downloadandroid_frameworks_ex-30df46f9e6794df82ad5f762416d6e7fb8e71b89.tar.gz
android_frameworks_ex-30df46f9e6794df82ad5f762416d6e7fb8e71b89.tar.bz2
android_frameworks_ex-30df46f9e6794df82ad5f762416d6e7fb8e71b89.zip
am 8fc3233b: am 3c154ffa: am 3696df98: am 57b5b6fa: am 0c58c370: Fix redrawing chips with recipientEditText onSizeChanged when it has left and right padding.
* commit '8fc3233b233bdfe5f46d87799ad626c4978228dd': 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.java3
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());
}