diff options
| author | 2016-05-03 21:22:16 +0000 | |
|---|---|---|
| committer | 2016-05-03 21:22:18 +0000 | |
| commit | c18009e6dd32f04fdad7f1b27a0a6b52ee5c875c (patch) | |
| tree | ae607db0734ba9e3a6eca25b43d48a4afd6e08cb | |
| parent | 7039adafa9a99f8eb4f8ccab9a6f9d2208454150 (diff) | |
| parent | 1f575b890e5ec82e93acc98a86eb21bf7a062977 (diff) | |
Merge "Revert "Request re-layout after setText if layout width is 0"" into nyc-dev
| -rw-r--r-- | core/java/android/widget/TextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index 26697f97d48c..a0843c7a8be4 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -7311,7 +7311,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // If we have a fixed width, we can just swap in a new text layout // if the text height stays the same or if the view height is fixed. - if (((mLayoutParams.width != LayoutParams.WRAP_CONTENT && mLayoutParams.width != 0) || + if ((mLayoutParams.width != LayoutParams.WRAP_CONTENT || (mMaxWidthMode == mMinWidthMode && mMaxWidth == mMinWidth)) && (mHint == null || mHintLayout != null) && (mRight - mLeft - getCompoundPaddingLeft() - getCompoundPaddingRight() > 0)) { |