Fix unscaled DirectionDragImageButton
This commit is contained in:
parent
3106403a86
commit
8ccddf3fb1
@ -77,6 +77,8 @@ public abstract class BaseKeyboardUi implements SharedPreferences.OnSharedPrefer
|
|||||||
public static void adjustButton(@NonNull View button) {
|
public static void adjustButton(@NonNull View button) {
|
||||||
if (button instanceof TextView) {
|
if (button instanceof TextView) {
|
||||||
Adjuster.adjustText((TextView) button, getTextScale(button.getContext()));
|
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) {
|
} else if (button instanceof ImageView) {
|
||||||
Adjuster.adjustImage((ImageView) button, IMAGE_SCALE);
|
Adjuster.adjustImage((ImageView) button, IMAGE_SCALE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user