Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f575b89 authored by Siyamed Sinir's avatar Siyamed Sinir
Browse files

Revert "Request re-layout after setText if layout width is 0"

This reverts commit 375366cb. 

Bug: 28523980
Change-Id: Ib4dd00eabaf7b5630b18373cc1d7bec61c0e155d
parent 375366cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 && mLayoutParams.width != 0) ||
        if ((mLayoutParams.width != LayoutParams.WRAP_CONTENT ||
                (mMaxWidthMode == mMinWidthMode && mMaxWidth == mMinWidth)) &&
                (mHint == null || mHintLayout != null) &&
                (mRight - mLeft - getCompoundPaddingLeft() - getCompoundPaddingRight() > 0)) {