mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 04:35:57 +00:00
Show EML/BCC
This commit is contained in:
parent
97b1877d2c
commit
d1ce1b6e7f
2 changed files with 30 additions and 3 deletions
|
@ -71,6 +71,7 @@ public class ActivityEML extends ActivityBase {
|
|||
private TextView tvTo;
|
||||
private TextView tvReplyTo;
|
||||
private TextView tvCc;
|
||||
private TextView tvBcc;
|
||||
private TextView tvSent;
|
||||
private TextView tvReceived;
|
||||
private TextView tvSubject;
|
||||
|
@ -95,6 +96,7 @@ public class ActivityEML extends ActivityBase {
|
|||
tvTo = findViewById(R.id.tvTo);
|
||||
tvReplyTo = findViewById(R.id.tvReplyTo);
|
||||
tvCc = findViewById(R.id.tvCc);
|
||||
tvBcc = findViewById(R.id.tvBcc);
|
||||
tvSent = findViewById(R.id.tvSent);
|
||||
tvReceived = findViewById(R.id.tvReceived);
|
||||
tvSubject = findViewById(R.id.tvSubject);
|
||||
|
@ -170,6 +172,7 @@ public class ActivityEML extends ActivityBase {
|
|||
result.to = MessageHelper.formatAddresses(helper.getTo());
|
||||
result.replyTo = MessageHelper.formatAddresses(helper.getReply());
|
||||
result.cc = MessageHelper.formatAddresses(helper.getCc());
|
||||
result.bcc = MessageHelper.formatAddresses(helper.getBcc());
|
||||
result.sent = helper.getSent();
|
||||
result.received = helper.getReceived();
|
||||
result.subject = helper.getSubject();
|
||||
|
@ -194,6 +197,7 @@ public class ActivityEML extends ActivityBase {
|
|||
tvTo.setText(result.to);
|
||||
tvReplyTo.setText(result.replyTo);
|
||||
tvCc.setText(result.cc);
|
||||
tvBcc.setText(result.bcc);
|
||||
tvSent.setText(result.sent == null ? null : DTF.format(result.sent));
|
||||
tvReceived.setText(result.received == null ? null : DTF.format(result.received));
|
||||
tvSubject.setText(result.subject);
|
||||
|
@ -471,6 +475,7 @@ public class ActivityEML extends ActivityBase {
|
|||
String to;
|
||||
String replyTo;
|
||||
String cc;
|
||||
String bcc;
|
||||
Long sent;
|
||||
Long received;
|
||||
String subject;
|
||||
|
|
|
@ -118,13 +118,35 @@
|
|||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="Cc"
|
||||
android:text="CC"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textIsSelectable="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/tvCcTitle"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvReplyTo" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvBccTitle"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/title_bcc"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCc" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvBcc"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="6dp"
|
||||
android:text="BCC"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textIsSelectable="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/tvBccTitle"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCc" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvSentTitle"
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -133,7 +155,7 @@
|
|||
android:textAppearance="@style/TextAppearance.AppCompat.Small"
|
||||
android:textStyle="bold"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCc" />
|
||||
app:layout_constraintTop_toBottomOf="@id/tvBcc" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvSent"
|
||||
|
@ -145,7 +167,7 @@
|
|||
android:textIsSelectable="true"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toEndOf="@id/tvSentTitle"
|
||||
app:layout_constraintTop_toBottomOf="@id/tvCc" />
|
||||
app:layout_constraintTop_toBottomOf="@id/tvBcc" />
|
||||
|
||||
<eu.faircode.email.FixedTextView
|
||||
android:id="@+id/tvReceivedTitle"
|
||||
|
|
Loading…
Reference in a new issue