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

Commit 8c8e942b authored by Raph Levien's avatar Raph Levien Committed by android-build-merger
Browse files

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

am: a4750fd7

* commit 'a4750fd7':
  Invalidate TextView on change of elegantTextHeight
parents dfd8ef3a a4750fd7
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();
            }
        }
    }

    /**