|
|
|
@ -50,6 +50,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private Button btnLocalContacts;
|
|
|
|
|
private SwitchCompat swSendReminders;
|
|
|
|
|
private Spinner spSendDelayed;
|
|
|
|
|
private SwitchCompat swSendPending;
|
|
|
|
|
|
|
|
|
|
private Spinner spComposeFont;
|
|
|
|
|
private SwitchCompat swPrefixOnce;
|
|
|
|
@ -77,7 +78,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
|
"keyboard", "keyboard_no_fullscreen",
|
|
|
|
|
"suggest_names", "suggest_sent", "suggested_received", "suggest_frequently",
|
|
|
|
|
"send_reminders", "send_delayed",
|
|
|
|
|
"send_reminders", "send_delayed", "send_pending",
|
|
|
|
|
"compose_font", "prefix_once", "separate_reply", "extended_reply", "write_below", "quote_reply", "quote_limit", "resize_reply",
|
|
|
|
|
"signature_location", "signature_reply", "signature_forward",
|
|
|
|
|
"discard_delete",
|
|
|
|
@ -104,8 +105,9 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
btnLocalContacts = view.findViewById(R.id.btnLocalContacts);
|
|
|
|
|
swSendReminders = view.findViewById(R.id.swSendReminders);
|
|
|
|
|
spSendDelayed = view.findViewById(R.id.spSendDelayed);
|
|
|
|
|
spComposeFont = view.findViewById(R.id.spComposeFont);
|
|
|
|
|
swSendPending = view.findViewById(R.id.swSendPending);
|
|
|
|
|
|
|
|
|
|
spComposeFont = view.findViewById(R.id.spComposeFont);
|
|
|
|
|
swPrefixOnce = view.findViewById(R.id.swPrefixOnce);
|
|
|
|
|
swSeparateReply = view.findViewById(R.id.swSeparateReply);
|
|
|
|
|
swExtendedReply = view.findViewById(R.id.swExtendedReply);
|
|
|
|
@ -206,6 +208,13 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swSendPending.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("send_pending", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
spComposeFont.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {
|
|
|
|
@ -434,6 +443,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
swSendPending.setChecked(prefs.getBoolean("send_pending", true));
|
|
|
|
|
|
|
|
|
|
boolean monospaced = prefs.getBoolean("monospaced", false);
|
|
|
|
|
String compose_font = prefs.getString("compose_font", monospaced ? "monospace" : "sans-serif");
|
|
|
|
|
String[] fontNameValues = getResources().getStringArray(R.array.fontNameValues);
|
|
|
|
|