Fixed send font option style

pull/194/merge
M66B 3 years ago
parent 8458c71697
commit 7acf8d3282

@ -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);
}

Loading…
Cancel
Save