mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-20 13:17:08 +00:00
Persist Markdown setting
This commit is contained in:
parent
f6895c1ff8
commit
c152a5c3ca
1 changed files with 6 additions and 0 deletions
|
@ -2343,6 +2343,8 @@ public class FragmentCompose extends FragmentBase {
|
|||
|
||||
private void onMenuMarkdown() {
|
||||
markdown = !markdown;
|
||||
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(getContext());
|
||||
prefs.edit().putBoolean("markdown", markdown).apply();
|
||||
|
||||
Bundle args = new Bundle();
|
||||
args.putBoolean("markdown", true);
|
||||
|
@ -5611,6 +5613,10 @@ public class FragmentCompose extends FragmentBase {
|
|||
}
|
||||
}
|
||||
|
||||
boolean markdown = prefs.getBoolean("markdown", false);
|
||||
if (markdown)
|
||||
document.body().attr("markdown", Boolean.toString(markdown));
|
||||
|
||||
data.draft.signature = prefs.getBoolean("signature_new", true);
|
||||
addSignature(context, document, data.draft, selected);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue