Don’t try to autoSize if TextView is not measured
This CL early returns from auto sizing text if the view is not measured yet. Test: run cts --test android.widget.cts.TextViewTest -m CtsWidgetTestCases Test: Added cts.TextViewTest#testAutosizeWithMaxLines_shouldNotThrowException Test: Manual test with sample app for the failing case. Bug: 38440435 Change-Id: Ic03c991f33a2b7701623f00f44cba7fb6cdfce46
Loading
Please register or sign in to comment