Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4c319d07 authored by Tyler Freeman's avatar Tyler Freeman
Browse files

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

Bug: 273326061
Test: n/a
Change-Id: I28e489d4814a60507d43affa3517cf5a15d28ec0
parent d154307d
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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()));
    }