fixed some bugs with acting text

This commit is contained in:
Gavriil Sitnikov 2016-03-21 20:57:14 +03:00
parent 9f8ba64609
commit 7dfd59cd1c
1 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ public class TypefacedTextView extends TextView implements TypefacedView {
do {
switch (scaleAction) {
case SCALE_DOWN:
difference /= 2;
difference = Math.round(difference / 2);
setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize() - difference);
break;
case SCALE_UP:
difference /= 2;
difference = (int) (difference / 2);
setTextSize(TypedValue.COMPLEX_UNIT_PX, getTextSize() + difference);
break;
case DO_NOTHING: