Apply monospaced to compose view text too

pull/153/head
M66B 6 years ago
parent a795ee6d0e
commit 1d083275fd

@ -175,6 +175,7 @@ public class FragmentCompose extends FragmentBase {
private boolean autosave = false;
private boolean busy = false;
private boolean monospaced = false;
private boolean style = true;
private boolean encrypt = false;
private OpenPgpServiceConnection pgpService;
@ -188,6 +189,7 @@ public class FragmentCompose extends FragmentBase {
pro = Helper.isPro(getContext());
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
monospaced = prefs.getBoolean("monospaced", true);
style = prefs.getBoolean("style_toolbar", true);
}
@ -328,6 +330,8 @@ public class FragmentCompose extends FragmentBase {
}
});
etBody.setTypeface(monospaced ? Typeface.MONOSPACE : Typeface.DEFAULT);
edit_bar.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {

Loading…
Cancel
Save