fix(non linear font scaling)!: add ComplexDimensionUnit annotation to setLineHeight()

Bug: 273326061
Test: n/a
Change-Id: I28e489d4814a60507d43affa3517cf5a15d28ec0
This commit is contained in:
Tyler Freeman
2023-03-30 19:12:39 +00:00
parent d154307db9
commit 4c319d0774

View File

@@ -6232,7 +6232,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
* @attr ref android.R.styleable#TextView_lineHeight
*/
@android.view.RemotableViewMethod
public void setLineHeight(int unit, @FloatRange(from = 0) float lineHeight) {
public void setLineHeight(
@TypedValue.ComplexDimensionUnit int unit,
@FloatRange(from = 0) float lineHeight
) {
setLineHeightPx(
TypedValue.applyDimension(unit, lineHeight, getDisplayMetricsOrSystem()));
}