mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 07:01:05 +00:00
Small layout improvement
This commit is contained in:
parent
c0daddef8c
commit
b85c733496
3 changed files with 17 additions and 17 deletions
|
@ -690,9 +690,9 @@ public class EntityRule {
|
||||||
long aid = jargs.getLong("answer");
|
long aid = jargs.getLong("answer");
|
||||||
boolean answer_subject = jargs.optBoolean("answer_subject", false);
|
boolean answer_subject = jargs.optBoolean("answer_subject", false);
|
||||||
boolean original_text = jargs.optBoolean("original_text", true);
|
boolean original_text = jargs.optBoolean("original_text", true);
|
||||||
|
boolean attachments = jargs.optBoolean("attachments");
|
||||||
String to = jargs.optString("to");
|
String to = jargs.optString("to");
|
||||||
boolean cc = jargs.optBoolean("cc");
|
boolean cc = jargs.optBoolean("cc");
|
||||||
boolean attachments = jargs.optBoolean("attachments");
|
|
||||||
|
|
||||||
boolean isReply = TextUtils.isEmpty(to);
|
boolean isReply = TextUtils.isEmpty(to);
|
||||||
|
|
||||||
|
|
|
@ -142,10 +142,10 @@ public class FragmentRule extends FragmentBase {
|
||||||
private Spinner spAnswer;
|
private Spinner spAnswer;
|
||||||
private CheckBox cbAnswerSubject;
|
private CheckBox cbAnswerSubject;
|
||||||
private CheckBox cbOriginalText;
|
private CheckBox cbOriginalText;
|
||||||
|
private CheckBox cbWithAttachments;
|
||||||
private EditText etTo;
|
private EditText etTo;
|
||||||
private ImageButton ibTo;
|
private ImageButton ibTo;
|
||||||
private CheckBox cbCc;
|
private CheckBox cbCc;
|
||||||
private CheckBox cbWithAttachments;
|
|
||||||
|
|
||||||
private Button btnTtsSetup;
|
private Button btnTtsSetup;
|
||||||
private Button btnTtsData;
|
private Button btnTtsData;
|
||||||
|
@ -294,10 +294,10 @@ public class FragmentRule extends FragmentBase {
|
||||||
spAnswer = view.findViewById(R.id.spAnswer);
|
spAnswer = view.findViewById(R.id.spAnswer);
|
||||||
cbAnswerSubject = view.findViewById(R.id.cbAnswerSubject);
|
cbAnswerSubject = view.findViewById(R.id.cbAnswerSubject);
|
||||||
cbOriginalText = view.findViewById(R.id.cbOriginalText);
|
cbOriginalText = view.findViewById(R.id.cbOriginalText);
|
||||||
|
cbWithAttachments = view.findViewById(R.id.cbWithAttachments);
|
||||||
etTo = view.findViewById(R.id.etTo);
|
etTo = view.findViewById(R.id.etTo);
|
||||||
ibTo = view.findViewById(R.id.ibTo);
|
ibTo = view.findViewById(R.id.ibTo);
|
||||||
cbCc = view.findViewById(R.id.cbCc);
|
cbCc = view.findViewById(R.id.cbCc);
|
||||||
cbWithAttachments = view.findViewById(R.id.cbWithAttachments);
|
|
||||||
|
|
||||||
btnTtsSetup = view.findViewById(R.id.btnTtsSetup);
|
btnTtsSetup = view.findViewById(R.id.btnTtsSetup);
|
||||||
btnTtsData = view.findViewById(R.id.btnTtsData);
|
btnTtsData = view.findViewById(R.id.btnTtsData);
|
||||||
|
@ -1143,10 +1143,10 @@ public class FragmentRule extends FragmentBase {
|
||||||
|
|
||||||
cbAnswerSubject.setChecked(jaction.optBoolean("answer_subject", false));
|
cbAnswerSubject.setChecked(jaction.optBoolean("answer_subject", false));
|
||||||
cbOriginalText.setChecked(jaction.optBoolean("original_text", true));
|
cbOriginalText.setChecked(jaction.optBoolean("original_text", true));
|
||||||
|
cbWithAttachments.setChecked(jaction.optBoolean("attachments"));
|
||||||
|
|
||||||
etTo.setText(jaction.optString("to"));
|
etTo.setText(jaction.optString("to"));
|
||||||
cbCc.setChecked(jaction.optBoolean("cc"));
|
cbCc.setChecked(jaction.optBoolean("cc"));
|
||||||
cbWithAttachments.setChecked(jaction.optBoolean("attachments"));
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EntityRule.TYPE_SOUND:
|
case EntityRule.TYPE_SOUND:
|
||||||
|
@ -1486,9 +1486,9 @@ public class FragmentRule extends FragmentBase {
|
||||||
jaction.put("answer", answer == null || answer.id == null ? -1 : answer.id);
|
jaction.put("answer", answer == null || answer.id == null ? -1 : answer.id);
|
||||||
jaction.put("answer_subject", cbAnswerSubject.isChecked());
|
jaction.put("answer_subject", cbAnswerSubject.isChecked());
|
||||||
jaction.put("original_text", cbOriginalText.isChecked());
|
jaction.put("original_text", cbOriginalText.isChecked());
|
||||||
|
jaction.put("attachments", cbWithAttachments.isChecked());
|
||||||
jaction.put("to", etTo.getText().toString().trim());
|
jaction.put("to", etTo.getText().toString().trim());
|
||||||
jaction.put("cc", cbCc.isChecked());
|
jaction.put("cc", cbCc.isChecked());
|
||||||
jaction.put("attachments", cbWithAttachments.isChecked());
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EntityRule.TYPE_SOUND:
|
case EntityRule.TYPE_SOUND:
|
||||||
|
|
|
@ -859,6 +859,15 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/cbAnswerSubject" />
|
app:layout_constraintTop_toBottomOf="@id/cbAnswerSubject" />
|
||||||
|
|
||||||
|
<CheckBox
|
||||||
|
android:id="@+id/cbWithAttachments"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="12dp"
|
||||||
|
android:text="@string/title_rule_with_attachments"
|
||||||
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
|
app:layout_constraintTop_toBottomOf="@id/cbOriginalText" />
|
||||||
|
|
||||||
<eu.faircode.email.FixedTextView
|
<eu.faircode.email.FixedTextView
|
||||||
android:id="@+id/tvTo"
|
android:id="@+id/tvTo"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
|
@ -868,7 +877,7 @@
|
||||||
android:text="@string/title_rule_forward_to"
|
android:text="@string/title_rule_forward_to"
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/cbOriginalText" />
|
app:layout_constraintTop_toBottomOf="@id/cbWithAttachments" />
|
||||||
|
|
||||||
<eu.faircode.email.EditTextPlain
|
<eu.faircode.email.EditTextPlain
|
||||||
android:id="@+id/etTo"
|
android:id="@+id/etTo"
|
||||||
|
@ -902,15 +911,6 @@
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/etTo" />
|
app:layout_constraintTop_toBottomOf="@id/etTo" />
|
||||||
|
|
||||||
<CheckBox
|
|
||||||
android:id="@+id/cbWithAttachments"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_marginTop="12dp"
|
|
||||||
android:text="@string/title_rule_with_attachments"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toBottomOf="@id/cbCc" />
|
|
||||||
|
|
||||||
<eu.faircode.email.FixedTextView
|
<eu.faircode.email.FixedTextView
|
||||||
android:id="@+id/tvAnswerRemark"
|
android:id="@+id/tvAnswerRemark"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
|
@ -920,7 +920,7 @@
|
||||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||||
android:textStyle="italic"
|
android:textStyle="italic"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@id/cbWithAttachments" />
|
app:layout_constraintTop_toBottomOf="@id/cbCc" />
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnTtsSetup"
|
android:id="@+id/btnTtsSetup"
|
||||||
|
@ -1084,7 +1084,7 @@
|
||||||
android:id="@+id/grpAnswer"
|
android:id="@+id/grpAnswer"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="0dp"
|
android:layout_height="0dp"
|
||||||
app:constraint_referenced_ids="tvAnswerIdentity,spIdent,tvAnswerTemplate,spAnswer,cbAnswerSubject,cbOriginalText,tvTo,etTo,ibTo,cbCc,cbWithAttachments,tvAnswerRemark" />
|
app:constraint_referenced_ids="tvAnswerIdentity,spIdent,tvAnswerTemplate,spAnswer,cbAnswerSubject,cbOriginalText,cbWithAttachments,tvTo,etTo,ibTo,cbCc,tvAnswerRemark" />
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Group
|
<androidx.constraintlayout.widget.Group
|
||||||
android:id="@+id/grpTts"
|
android:id="@+id/grpTts"
|
||||||
|
|
Loading…
Reference in a new issue