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

am: a4750fd71d

* commit 'a4750fd71d2a87e02b666590537a0ba026b331ec':
  Invalidate TextView on change of elegantTextHeight
This commit is contained in:
Raph Levien
2016-03-11 01:33:14 +00:00
committed by android-build-merger

View File

@@ -3071,7 +3071,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
* @attr ref android.R.styleable#TextView_elegantTextHeight
*/
public void setElegantTextHeight(boolean elegant) {
mTextPaint.setElegantTextHeight(elegant);
if (elegant != mTextPaint.isElegantTextHeight()) {
mTextPaint.setElegantTextHeight(elegant);
if (mLayout != null) {
nullLayouts();
requestLayout();
invalidate();
}
}
}
/**