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

Commit 25ff8a53 authored by Raph Levien's avatar Raph Levien
Browse files

Invalidate TextView on change of elegantTextHeight

Previously we were setting the paint but not invalidating, so it
could show stale content.

Bug: 27572149
Change-Id: I668667ec5b95a96e31a58cff0f8bbbb9958e470c
parent 5a994060
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();
            }
        }
    }

    /**