mirror of https://github.com/M66B/FairEmail.git
Moved signature bottom option
This commit is contained in:
parent
082dfcfe96
commit
0232e27d8b
|
@ -50,8 +50,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
||||||
private SwitchCompat swPrefixOnce;
|
private SwitchCompat swPrefixOnce;
|
||||||
private SwitchCompat swExtendedReply;
|
private SwitchCompat swExtendedReply;
|
||||||
private SwitchCompat swQuoteReply;
|
private SwitchCompat swQuoteReply;
|
||||||
private SwitchCompat swSignatureEnd;
|
|
||||||
private SwitchCompat swPlainOnly;
|
private SwitchCompat swPlainOnly;
|
||||||
|
private SwitchCompat swSignatureEnd;
|
||||||
private SwitchCompat swUsenetSignature;
|
private SwitchCompat swUsenetSignature;
|
||||||
private SwitchCompat swResizeImages;
|
private SwitchCompat swResizeImages;
|
||||||
private SwitchCompat swResizeAttachments;
|
private SwitchCompat swResizeAttachments;
|
||||||
|
@ -86,8 +86,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
||||||
swPrefixOnce = view.findViewById(R.id.swPrefixOnce);
|
swPrefixOnce = view.findViewById(R.id.swPrefixOnce);
|
||||||
swExtendedReply = view.findViewById(R.id.swExtendedReply);
|
swExtendedReply = view.findViewById(R.id.swExtendedReply);
|
||||||
swQuoteReply = view.findViewById(R.id.swQuoteReply);
|
swQuoteReply = view.findViewById(R.id.swQuoteReply);
|
||||||
swSignatureEnd = view.findViewById(R.id.swSignatureEnd);
|
|
||||||
swPlainOnly = view.findViewById(R.id.swPlainOnly);
|
swPlainOnly = view.findViewById(R.id.swPlainOnly);
|
||||||
|
swSignatureEnd = view.findViewById(R.id.swSignatureEnd);
|
||||||
swUsenetSignature = view.findViewById(R.id.swUsenetSignature);
|
swUsenetSignature = view.findViewById(R.id.swUsenetSignature);
|
||||||
swResizeImages = view.findViewById(R.id.swResizeImages);
|
swResizeImages = view.findViewById(R.id.swResizeImages);
|
||||||
swResizeAttachments = view.findViewById(R.id.swResizeAttachments);
|
swResizeAttachments = view.findViewById(R.id.swResizeAttachments);
|
||||||
|
@ -154,13 +154,6 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
swSignatureEnd.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
|
||||||
@Override
|
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
|
||||||
prefs.edit().putBoolean("signature_end", 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) {
|
||||||
|
@ -168,6 +161,13 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
swSignatureEnd.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
|
@Override
|
||||||
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
|
prefs.edit().putBoolean("signature_end", checked).apply();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
swUsenetSignature.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
swUsenetSignature.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
|
||||||
|
@ -291,8 +291,8 @@ public class FragmentOptionsSend extends FragmentBase implements SharedPreferenc
|
||||||
swPrefixOnce.setChecked(prefs.getBoolean("prefix_once", true));
|
swPrefixOnce.setChecked(prefs.getBoolean("prefix_once", true));
|
||||||
swExtendedReply.setChecked(prefs.getBoolean("extended_reply", false));
|
swExtendedReply.setChecked(prefs.getBoolean("extended_reply", false));
|
||||||
swQuoteReply.setChecked(prefs.getBoolean("quote_reply", true));
|
swQuoteReply.setChecked(prefs.getBoolean("quote_reply", true));
|
||||||
swSignatureEnd.setChecked(prefs.getBoolean("signature_end", false));
|
|
||||||
swPlainOnly.setChecked(prefs.getBoolean("plain_only", false));
|
swPlainOnly.setChecked(prefs.getBoolean("plain_only", false));
|
||||||
|
swSignatureEnd.setChecked(prefs.getBoolean("signature_end", false));
|
||||||
swUsenetSignature.setChecked(prefs.getBoolean("usenet_signature", false));
|
swUsenetSignature.setChecked(prefs.getBoolean("usenet_signature", false));
|
||||||
|
|
||||||
swResizeImages.setChecked(prefs.getBoolean("resize_images", true));
|
swResizeImages.setChecked(prefs.getBoolean("resize_images", true));
|
||||||
|
|
|
@ -119,17 +119,6 @@
|
||||||
app:layout_constraintTop_toBottomOf="@id/swExtendedReply"
|
app:layout_constraintTop_toBottomOf="@id/swExtendedReply"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
|
||||||
android:id="@+id/swSignatureEnd"
|
|
||||||
android:layout_width="0dp"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:text="@string/title_advanced_signature_end"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/swQuoteReply"
|
|
||||||
app:switchPadding="12dp" />
|
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
android:id="@+id/swPlainOnly"
|
android:id="@+id/swPlainOnly"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -138,7 +127,18 @@
|
||||||
android:text="@string/title_advanced_plain_only"
|
android:text="@string/title_advanced_plain_only"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/swSignatureEnd"
|
app:layout_constraintTop_toBottomOf="@id/swQuoteReply"
|
||||||
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
|
android:id="@+id/swSignatureEnd"
|
||||||
|
android:layout_width="0dp"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:text="@string/title_advanced_signature_end"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/swPlainOnly"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
<androidx.appcompat.widget.SwitchCompat
|
<androidx.appcompat.widget.SwitchCompat
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
android:text="@string/title_advanced_usenet_signature"
|
android:text="@string/title_advanced_usenet_signature"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/swPlainOnly"
|
app:layout_constraintTop_toBottomOf="@id/swSignatureEnd"
|
||||||
app:switchPadding="12dp" />
|
app:switchPadding="12dp" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|
Loading…
Reference in New Issue