From 8ccddf3fb1cbedfa349cff13d0f91c280b859253 Mon Sep 17 00:00:00 2001 From: serso Date: Tue, 15 Mar 2016 20:54:56 +0100 Subject: [PATCH] Fix unscaled DirectionDragImageButton --- .../solovyev/android/calculator/keyboard/BaseKeyboardUi.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/solovyev/android/calculator/keyboard/BaseKeyboardUi.java b/app/src/main/java/org/solovyev/android/calculator/keyboard/BaseKeyboardUi.java index 3bbcdaf9..d663e801 100644 --- a/app/src/main/java/org/solovyev/android/calculator/keyboard/BaseKeyboardUi.java +++ b/app/src/main/java/org/solovyev/android/calculator/keyboard/BaseKeyboardUi.java @@ -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); }