mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-18 23:13:36 +02:00
Apply monospaced to compose view text too
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user