scalable fix

This commit is contained in:
Gavriil Sitnikov 2016-03-09 17:28:25 +03:00
parent 7f2e812be1
commit 2f7af49434
1 changed files with 8 additions and 0 deletions

View File

@ -67,6 +67,14 @@ public class TypefacedTextView extends TextView implements TypefacedView {
requestLayout();
}
@Override
public void setText(final CharSequence text, final BufferType type) {
super.setText(text, type);
if (isScalable) {
requestLayout();
}
}
@SuppressWarnings("checkstyle:methodlength")
@Override
protected void onMeasure(final int widthMeasureSpec, final int heightMeasureSpec) {