From 931428a4b801ff78895c89e4e03ead5e44932e60 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 23 Jan 2021 22:38:27 +0100 Subject: [PATCH] Fixed text style --- app/src/main/java/eu/faircode/email/FragmentSetup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentSetup.java b/app/src/main/java/eu/faircode/email/FragmentSetup.java index 873ecc8203..fe6cfbbce7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentSetup.java +++ b/app/src/main/java/eu/faircode/email/FragmentSetup.java @@ -428,7 +428,7 @@ public class FragmentSetup extends FragmentBase { tvDozeDone.setText(ignoring ? R.string.title_setup_done : R.string.title_setup_to_do); tvDozeDone.setTextColor(ignoring ? textColorPrimary : colorWarning); - tvDozeDone.setTypeface(tvDozeDone.getTypeface(), ignoring ? Typeface.NORMAL : Typeface.BOLD); + tvDozeDone.setTypeface(null, ignoring ? Typeface.NORMAL : Typeface.BOLD); tvDozeDone.setCompoundDrawablesWithIntrinsicBounds(ignoring ? check : null, null, null, null); // https://developer.android.com/training/basics/network-ops/data-saver.html @@ -456,7 +456,7 @@ public class FragmentSetup extends FragmentBase { tvPermissionsDone.setText(granted ? R.string.title_setup_done : R.string.title_setup_to_do); tvPermissionsDone.setTextColor(granted ? textColorPrimary : colorWarning); - tvPermissionsDone.setTypeface(tvPermissionsDone.getTypeface(), granted ? Typeface.NORMAL : Typeface.BOLD); + tvPermissionsDone.setTypeface(null, granted ? Typeface.NORMAL : Typeface.BOLD); tvPermissionsDone.setCompoundDrawablesWithIntrinsicBounds(granted ? check : null, null, null, null); btnPermissions.setEnabled(!granted); }