Apply monospaced to compose view text too

This commit is contained in:
M66B
2019-03-27 09:18:12 +00:00
parent a795ee6d0e
commit 1d083275fd

View File

@@ -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) {