Added settings to disable monospaced typeface

This commit is contained in:
M66B
2019-03-26 13:49:55 +00:00
parent 681e0c87ef
commit cd1763f52a
5 changed files with 31 additions and 3 deletions

View File

@@ -141,6 +141,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private boolean compact;
private boolean name_email;
private boolean subject_italic;
private boolean monospaced;
private int zoom;
private String sort;
private boolean duplicates;
@@ -796,6 +797,8 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
btnHtml.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
ibQuotes.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
ibImages.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
tvBody.setTypeface(monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT);
tvBody.setVisibility(!show_html ? View.INVISIBLE : View.GONE);
vwBody.setVisibility(show_html ? View.INVISIBLE : View.GONE);
@@ -2937,6 +2940,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
this.compact = compact;
this.name_email = prefs.getBoolean("name_email", !compact);
this.subject_italic = prefs.getBoolean("subject_italic", true);
this.monospaced = prefs.getBoolean("monospaced", true);
this.zoom = zoom;
this.sort = sort;
this.duplicates = duplicates;