Merge "fix(non linear font scaling)!: add ComplexDimensionUnit annotation to setLineHeight()" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8f9bb97f4b
@@ -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