|
|
@ -229,6 +229,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
private SwitchCompat swPreviewQuotes;
|
|
|
|
private SwitchCompat swPreviewQuotes;
|
|
|
|
private SwitchCompat swEasyCorrect;
|
|
|
|
private SwitchCompat swEasyCorrect;
|
|
|
|
private SwitchCompat swPastePlain;
|
|
|
|
private SwitchCompat swPastePlain;
|
|
|
|
|
|
|
|
private SwitchCompat swPasteQuote;
|
|
|
|
private EditText etFaviconUri;
|
|
|
|
private EditText etFaviconUri;
|
|
|
|
private SwitchCompat swInfra;
|
|
|
|
private SwitchCompat swInfra;
|
|
|
|
private SwitchCompat swTldFlags;
|
|
|
|
private SwitchCompat swTldFlags;
|
|
|
@ -308,7 +309,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
|
|
|
|
"native_dkim", "native_arc", "native_arc_whitelist", "strict_alignment",
|
|
|
|
"native_dkim", "native_arc", "native_arc_whitelist", "strict_alignment",
|
|
|
|
"webp", "animate_images",
|
|
|
|
"webp", "animate_images",
|
|
|
|
"preview_hidden", "preview_quotes",
|
|
|
|
"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",
|
|
|
|
"app_chooser", "app_chooser_share", "share_task",
|
|
|
|
"adjacent_links", "adjacent_documents", "adjacent_portrait", "adjacent_landscape",
|
|
|
|
"adjacent_links", "adjacent_documents", "adjacent_portrait", "adjacent_landscape",
|
|
|
|
"delete_confirmation", "delete_notification", "global_keywords", "test_iab"
|
|
|
|
"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);
|
|
|
|
swPreviewQuotes = view.findViewById(R.id.swPreviewQuotes);
|
|
|
|
swEasyCorrect = view.findViewById(R.id.swEasyCorrect);
|
|
|
|
swEasyCorrect = view.findViewById(R.id.swEasyCorrect);
|
|
|
|
swPastePlain = view.findViewById(R.id.swPastePlain);
|
|
|
|
swPastePlain = view.findViewById(R.id.swPastePlain);
|
|
|
|
|
|
|
|
swPasteQuote = view.findViewById(R.id.swPasteQuote);
|
|
|
|
etFaviconUri = view.findViewById(R.id.etFaviconUri);
|
|
|
|
etFaviconUri = view.findViewById(R.id.etFaviconUri);
|
|
|
|
swInfra = view.findViewById(R.id.swInfra);
|
|
|
|
swInfra = view.findViewById(R.id.swInfra);
|
|
|
|
swTldFlags = view.findViewById(R.id.swTldFlags);
|
|
|
|
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() {
|
|
|
|
etFaviconUri.addTextChangedListener(new TextWatcher() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {
|
|
|
|
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));
|
|
|
|
swPreviewQuotes.setChecked(prefs.getBoolean("preview_quotes", true));
|
|
|
|
swEasyCorrect.setChecked(prefs.getBoolean("easy_correct", false));
|
|
|
|
swEasyCorrect.setChecked(prefs.getBoolean("easy_correct", false));
|
|
|
|
swPastePlain.setChecked(prefs.getBoolean("paste_plain", false));
|
|
|
|
swPastePlain.setChecked(prefs.getBoolean("paste_plain", false));
|
|
|
|
|
|
|
|
swPasteQuote.setChecked(prefs.getBoolean("paste_quote", false));
|
|
|
|
etFaviconUri.setText(prefs.getString("favicon_uri", null));
|
|
|
|
etFaviconUri.setText(prefs.getString("favicon_uri", null));
|
|
|
|
swInfra.setChecked(prefs.getBoolean("infra", false));
|
|
|
|
swInfra.setChecked(prefs.getBoolean("infra", false));
|
|
|
|
swTldFlags.setChecked(prefs.getBoolean("tld_flags", false));
|
|
|
|
swTldFlags.setChecked(prefs.getBoolean("tld_flags", false));
|
|
|
|