1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 10:47:28 +00:00

Fixed send font option style

This commit is contained in:
M66B 2022-02-11 07:58:50 +01:00
parent 8458c71697
commit 7acf8d3282

View file

@ -166,7 +166,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
for (int i = 0; i < fonts.size(); i++) {
StyleHelper.FontDescriptor font = fonts.get(i);
SpannableStringBuilder ssb = new SpannableStringBuilderEx(font.toString());
ssb.setSpan(new TypefaceSpan(font.type), 0, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
ssb.setSpan(StyleHelper.getTypefaceSpan(font.type, getContext()),
0, ssb.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);
fn.add(ssb);
}