fix(non linear font scaling)!: add ComplexDimensionUnit annotation to setLineHeight()
Bug: 273326061 Test: n/a Change-Id: I28e489d4814a60507d43affa3517cf5a15d28ec0
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user