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

Commit fdbb552d authored by Siyamed Sinir's avatar Siyamed Sinir Committed by android-build-merger
Browse files

Merge "Dont try to autoSize if TextView is not measured" into oc-dev am: 42b27605

am: 6a95c585

Change-Id: Ib79628f6804350222b7d68b49e32aeb99f6cf39c
parents 6b830b4e 6a95c585
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8257,6 +8257,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * Automatically computes and sets the text size.
     */
    private void autoSizeText() {
        if (getMeasuredWidth() <= 0 || getMeasuredHeight() <= 0) return;
        final int maxWidth = getWidth() - getTotalPaddingLeft() - getTotalPaddingRight();
        final int maxHeight = getHeight() - getExtendedPaddingBottom() - getExtendedPaddingTop();