|
|
|
@ -61,6 +61,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
private SwitchCompat swPrefixCount;
|
|
|
|
|
private RadioGroup rgRe;
|
|
|
|
|
private RadioGroup rgFwd;
|
|
|
|
|
private SwitchCompat swSendChips;
|
|
|
|
|
private SwitchCompat swSendReminders;
|
|
|
|
|
private Spinner spSendDelayed;
|
|
|
|
|
private SwitchCompat swAttachNew;
|
|
|
|
@ -96,7 +97,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
"keyboard", "keyboard_no_fullscreen",
|
|
|
|
|
"suggest_names", "suggest_sent", "suggested_received", "suggest_frequently",
|
|
|
|
|
"alt_re", "alt_fwd",
|
|
|
|
|
"send_reminders", "send_delayed",
|
|
|
|
|
"send_reminders", "send_chips", "send_delayed",
|
|
|
|
|
"attach_new", "answer_action", "send_pending",
|
|
|
|
|
"compose_font", "prefix_once", "prefix_count", "separate_reply", "extended_reply", "write_below", "quote_reply", "quote_limit", "resize_reply",
|
|
|
|
|
"signature_location", "signature_new", "signature_reply", "signature_forward",
|
|
|
|
@ -126,6 +127,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
swPrefixCount = view.findViewById(R.id.swPrefixCount);
|
|
|
|
|
rgRe = view.findViewById(R.id.rgRe);
|
|
|
|
|
rgFwd = view.findViewById(R.id.rgFwd);
|
|
|
|
|
swSendChips = view.findViewById(R.id.swSendChips);
|
|
|
|
|
swSendReminders = view.findViewById(R.id.swSendReminders);
|
|
|
|
|
spSendDelayed = view.findViewById(R.id.spSendDelayed);
|
|
|
|
|
swAttachNew = view.findViewById(R.id.swAttachNew);
|
|
|
|
@ -260,6 +262,13 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swSendChips.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
prefs.edit().putBoolean("send_chips", checked).apply();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
swSendReminders.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
@Override
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
@ -562,6 +571,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
|
rgRe.check(prefs.getBoolean("alt_re", false) ? R.id.rbRe2 : R.id.rbRe1);
|
|
|
|
|
rgFwd.check(prefs.getBoolean("alt_fwd", false) ? R.id.rbFwd2 : R.id.rbFwd1);
|
|
|
|
|
|
|
|
|
|
swSendChips.setChecked(prefs.getBoolean("send_chips", false));
|
|
|
|
|
swSendReminders.setChecked(prefs.getBoolean("send_reminders", true));
|
|
|
|
|
|
|
|
|
|
int send_delayed = prefs.getInt("send_delayed", 0);
|
|
|
|
|