|
|
@ -55,6 +55,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
private SwitchCompat swQuoteReply;
|
|
|
|
private SwitchCompat swQuoteReply;
|
|
|
|
private SwitchCompat swResizeReply;
|
|
|
|
private SwitchCompat swResizeReply;
|
|
|
|
private Spinner spSignatureLocation;
|
|
|
|
private Spinner spSignatureLocation;
|
|
|
|
|
|
|
|
private SwitchCompat swSignatureReply;
|
|
|
|
|
|
|
|
|
|
|
|
private SwitchCompat swPlainOnly;
|
|
|
|
private SwitchCompat swPlainOnly;
|
|
|
|
private SwitchCompat swFormatFlowed;
|
|
|
|
private SwitchCompat swFormatFlowed;
|
|
|
@ -67,7 +68,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
private final static String[] RESET_OPTIONS = new String[]{
|
|
|
|
"keyboard", "suggest_sent", "suggested_received", "suggest_frequently",
|
|
|
|
"keyboard", "suggest_sent", "suggested_received", "suggest_frequently",
|
|
|
|
"send_reminders", "send_delayed",
|
|
|
|
"send_reminders", "send_delayed",
|
|
|
|
"prefix_once", "extended_reply", "quote_reply", "resize_reply", "signature_location",
|
|
|
|
"prefix_once", "extended_reply", "quote_reply", "resize_reply", "signature_location", "signature_reply",
|
|
|
|
"plain_only", "format_flowed", "usenet_signature", "remove_signatures",
|
|
|
|
"plain_only", "format_flowed", "usenet_signature", "remove_signatures",
|
|
|
|
"receipt_default", "receipt_type", "lookup_mx"
|
|
|
|
"receipt_default", "receipt_type", "lookup_mx"
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -95,6 +96,7 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
swQuoteReply = view.findViewById(R.id.swQuoteReply);
|
|
|
|
swQuoteReply = view.findViewById(R.id.swQuoteReply);
|
|
|
|
swResizeReply = view.findViewById(R.id.swResizeReply);
|
|
|
|
swResizeReply = view.findViewById(R.id.swResizeReply);
|
|
|
|
spSignatureLocation = view.findViewById(R.id.spSignatureLocation);
|
|
|
|
spSignatureLocation = view.findViewById(R.id.spSignatureLocation);
|
|
|
|
|
|
|
|
swSignatureReply = view.findViewById(R.id.swSignatureReply);
|
|
|
|
|
|
|
|
|
|
|
|
swPlainOnly = view.findViewById(R.id.swPlainOnly);
|
|
|
|
swPlainOnly = view.findViewById(R.id.swPlainOnly);
|
|
|
|
swFormatFlowed = view.findViewById(R.id.swFormatFlowed);
|
|
|
|
swFormatFlowed = view.findViewById(R.id.swFormatFlowed);
|
|
|
@ -208,6 +210,13 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swSignatureReply.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
|
|
|
|
prefs.edit().putBoolean("signature_reply", checked).apply();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
swPlainOnly.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
swPlainOnly.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
|
@ -331,6 +340,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
|
|
|
int signature_location = prefs.getInt("signature_location", 1);
|
|
|
|
int signature_location = prefs.getInt("signature_location", 1);
|
|
|
|
spSignatureLocation.setSelection(signature_location);
|
|
|
|
spSignatureLocation.setSelection(signature_location);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
swSignatureReply.setChecked(prefs.getBoolean("signature_reply", true));
|
|
|
|
|
|
|
|
|
|
|
|
swPlainOnly.setChecked(prefs.getBoolean("plain_only", false));
|
|
|
|
swPlainOnly.setChecked(prefs.getBoolean("plain_only", false));
|
|
|
|
swFormatFlowed.setChecked(prefs.getBoolean("format_flowed", false));
|
|
|
|
swFormatFlowed.setChecked(prefs.getBoolean("format_flowed", false));
|
|
|
|
swUsenetSignature.setChecked(prefs.getBoolean("usenet_signature", false));
|
|
|
|
swUsenetSignature.setChecked(prefs.getBoolean("usenet_signature", false));
|
|
|
|