Merge "Request re-layout after setText if layout width is 0" into nyc-dev am: d01e6f9
am: 5ce80a0
* commit '5ce80a03e7f86e0aae141b2340d13439c65cbf3b':
Request re-layout after setText if layout width is 0
Change-Id: Ic7dd362f57eb10df8cca6fc8b6720cc0f45fc2f1
This commit is contained in:
@@ -7310,7 +7310,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 ||
|
||||
if (((mLayoutParams.width != LayoutParams.WRAP_CONTENT && mLayoutParams.width != 0) ||
|
||||
(mMaxWidthMode == mMinWidthMode && mMaxWidth == mMinWidth)) &&
|
||||
(mHint == null || mHintLayout != null) &&
|
||||
(mRight - mLeft - getCompoundPaddingLeft() - getCompoundPaddingRight() > 0)) {
|
||||
|
||||
Reference in New Issue
Block a user