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

am: 6a95c58508

Change-Id: Ib79628f6804350222b7d68b49e32aeb99f6cf39c
This commit is contained in:
Siyamed Sinir
2017-05-30 13:40:53 +00:00
committed by android-build-merger

View File

@@ -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();