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:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user