diff --git a/android-app/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java b/android-app/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java index 91202a66..41bad375 100644 --- a/android-app/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java +++ b/android-app/src/main/java/org/solovyev/android/calculator/AbstractCalculatorHelper.java @@ -220,7 +220,12 @@ public abstract class AbstractCalculatorHelper implements SharedPreferences.OnSh Views.processViewsOfType(root, TextView.class, new Views.ViewProcessor() { @Override public void process(@Nonnull TextView view) { - view.setTypeface(typeFace); + int style = Typeface.NORMAL; + final Typeface oldTypeface = view.getTypeface(); + if (oldTypeface != null) { + style = oldTypeface.getStyle(); + } + view.setTypeface(typeFace, style); } }); }