mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-04 08:08:16 +02:00
Added paste as quote
This commit is contained in:
@@ -229,6 +229,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
private SwitchCompat swPreviewQuotes;
|
||||
private SwitchCompat swEasyCorrect;
|
||||
private SwitchCompat swPastePlain;
|
||||
private SwitchCompat swPasteQuote;
|
||||
private EditText etFaviconUri;
|
||||
private SwitchCompat swInfra;
|
||||
private SwitchCompat swTldFlags;
|
||||
@@ -308,7 +309,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
"native_dkim", "native_arc", "native_arc_whitelist", "strict_alignment",
|
||||
"webp", "animate_images",
|
||||
"preview_hidden", "preview_quotes",
|
||||
"easy_correct", "paste_plain", "favicon_uri", "infra", "tld_flags", "json_ld", "dup_msgids", "thread_byref", "save_user_flags", "mdn",
|
||||
"easy_correct", "paste_plain", "paste_quote", "favicon_uri", "infra", "tld_flags", "json_ld", "dup_msgids", "thread_byref", "save_user_flags", "mdn",
|
||||
"app_chooser", "app_chooser_share", "share_task",
|
||||
"adjacent_links", "adjacent_documents", "adjacent_portrait", "adjacent_landscape",
|
||||
"delete_confirmation", "delete_notification", "global_keywords", "test_iab"
|
||||
@@ -492,6 +493,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swPreviewQuotes = view.findViewById(R.id.swPreviewQuotes);
|
||||
swEasyCorrect = view.findViewById(R.id.swEasyCorrect);
|
||||
swPastePlain = view.findViewById(R.id.swPastePlain);
|
||||
swPasteQuote = view.findViewById(R.id.swPasteQuote);
|
||||
etFaviconUri = view.findViewById(R.id.etFaviconUri);
|
||||
swInfra = view.findViewById(R.id.swInfra);
|
||||
swTldFlags = view.findViewById(R.id.swTldFlags);
|
||||
@@ -1668,6 +1670,13 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
}
|
||||
});
|
||||
|
||||
swPasteQuote.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||
@Override
|
||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||
prefs.edit().putBoolean("paste_quote", checked).apply();
|
||||
}
|
||||
});
|
||||
|
||||
etFaviconUri.addTextChangedListener(new TextWatcher() {
|
||||
@Override
|
||||
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
||||
@@ -2550,6 +2559,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
||||
swPreviewQuotes.setChecked(prefs.getBoolean("preview_quotes", true));
|
||||
swEasyCorrect.setChecked(prefs.getBoolean("easy_correct", false));
|
||||
swPastePlain.setChecked(prefs.getBoolean("paste_plain", false));
|
||||
swPasteQuote.setChecked(prefs.getBoolean("paste_quote", false));
|
||||
etFaviconUri.setText(prefs.getString("favicon_uri", null));
|
||||
swInfra.setChecked(prefs.getBoolean("infra", false));
|
||||
swTldFlags.setChecked(prefs.getBoolean("tld_flags", false));
|
||||
|
||||
Reference in New Issue
Block a user