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

Commit a4750fd7 authored by Raph Levien's avatar Raph Levien Committed by Android (Google) Code Review
Browse files

Merge "Invalidate TextView on change of elegantTextHeight" into nyc-dev

parents 8800f2d3 25ff8a53
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -3071,7 +3071,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * @attr ref android.R.styleable#TextView_elegantTextHeight
     */
    public void setElegantTextHeight(boolean elegant) {
        if (elegant != mTextPaint.isElegantTextHeight()) {
            mTextPaint.setElegantTextHeight(elegant);
            if (mLayout != null) {
                nullLayouts();
                requestLayout();
                invalidate();
            }
        }
    }

    /**