Merge "Dont try to autoSize if TextView is not measured" into oc-dev
am: 42b2760525
Change-Id: I737e9498b08de1a8447db39b194fe1640c721f2d
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user