Fix unscaled DirectionDragImageButton

This commit is contained in:
serso 2016-03-15 20:54:56 +01:00
parent 3106403a86
commit 8ccddf3fb1

View File

@ -77,6 +77,8 @@ public abstract class BaseKeyboardUi implements SharedPreferences.OnSharedPrefer
public static void adjustButton(@NonNull View button) {
if (button instanceof TextView) {
Adjuster.adjustText((TextView) button, getTextScale(button.getContext()));
} else if (button instanceof DirectionDragImageButton) {
Adjuster.adjustText(((DirectionDragImageButton) button), AdjusterHelper.instance, getTextScale(button.getContext()), 0);
} else if (button instanceof ImageView) {
Adjuster.adjustImage((ImageView) button, IMAGE_SCALE);
}