mirror of https://github.com/M66B/FairEmail.git
Apply monospaced setting also to preview / webview
This commit is contained in:
parent
f27ef3390e
commit
30fcceda91
|
@ -608,6 +608,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
bindFlagged(message);
|
bindFlagged(message);
|
||||||
|
|
||||||
// Message text preview
|
// Message text preview
|
||||||
|
tvPreview.setTypeface(monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT, Typeface.ITALIC);
|
||||||
tvPreview.setText(message.preview);
|
tvPreview.setText(message.preview);
|
||||||
tvPreview.setVisibility(preview && !TextUtils.isEmpty(message.preview) ? View.VISIBLE : View.GONE);
|
tvPreview.setVisibility(preview && !TextUtils.isEmpty(message.preview) ? View.VISIBLE : View.GONE);
|
||||||
|
|
||||||
|
@ -1446,6 +1447,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||||
TypedValue.COMPLEX_UNIT_PX, textSize,
|
TypedValue.COMPLEX_UNIT_PX, textSize,
|
||||||
context.getResources().getDisplayMetrics()));
|
context.getResources().getDisplayMetrics()));
|
||||||
settings.setDefaultFontSize(px);
|
settings.setDefaultFontSize(px);
|
||||||
|
if (monospaced)
|
||||||
settings.setStandardFontFamily("monospace");
|
settings.setStandardFontFamily("monospace");
|
||||||
|
|
||||||
webView.setWebViewClient(new WebViewClient() {
|
webView.setWebViewClient(new WebViewClient() {
|
||||||
|
|
Loading…
Reference in New Issue