Show EML/BCC

pull/178/head
M66B 5 years ago
parent 97b1877d2c
commit d1ce1b6e7f

@ -71,6 +71,7 @@ public class ActivityEML extends ActivityBase {
private TextView tvTo; private TextView tvTo;
private TextView tvReplyTo; private TextView tvReplyTo;
private TextView tvCc; private TextView tvCc;
private TextView tvBcc;
private TextView tvSent; private TextView tvSent;
private TextView tvReceived; private TextView tvReceived;
private TextView tvSubject; private TextView tvSubject;
@ -95,6 +96,7 @@ public class ActivityEML extends ActivityBase {
tvTo = findViewById(R.id.tvTo); tvTo = findViewById(R.id.tvTo);
tvReplyTo = findViewById(R.id.tvReplyTo); tvReplyTo = findViewById(R.id.tvReplyTo);
tvCc = findViewById(R.id.tvCc); tvCc = findViewById(R.id.tvCc);
tvBcc = findViewById(R.id.tvBcc);
tvSent = findViewById(R.id.tvSent); tvSent = findViewById(R.id.tvSent);
tvReceived = findViewById(R.id.tvReceived); tvReceived = findViewById(R.id.tvReceived);
tvSubject = findViewById(R.id.tvSubject); tvSubject = findViewById(R.id.tvSubject);
@ -170,6 +172,7 @@ public class ActivityEML extends ActivityBase {
result.to = MessageHelper.formatAddresses(helper.getTo()); result.to = MessageHelper.formatAddresses(helper.getTo());
result.replyTo = MessageHelper.formatAddresses(helper.getReply()); result.replyTo = MessageHelper.formatAddresses(helper.getReply());
result.cc = MessageHelper.formatAddresses(helper.getCc()); result.cc = MessageHelper.formatAddresses(helper.getCc());
result.bcc = MessageHelper.formatAddresses(helper.getBcc());
result.sent = helper.getSent(); result.sent = helper.getSent();
result.received = helper.getReceived(); result.received = helper.getReceived();
result.subject = helper.getSubject(); result.subject = helper.getSubject();
@ -194,6 +197,7 @@ public class ActivityEML extends ActivityBase {
tvTo.setText(result.to); tvTo.setText(result.to);
tvReplyTo.setText(result.replyTo); tvReplyTo.setText(result.replyTo);
tvCc.setText(result.cc); tvCc.setText(result.cc);
tvBcc.setText(result.bcc);
tvSent.setText(result.sent == null ? null : DTF.format(result.sent)); tvSent.setText(result.sent == null ? null : DTF.format(result.sent));
tvReceived.setText(result.received == null ? null : DTF.format(result.received)); tvReceived.setText(result.received == null ? null : DTF.format(result.received));
tvSubject.setText(result.subject); tvSubject.setText(result.subject);
@ -471,6 +475,7 @@ public class ActivityEML extends ActivityBase {
String to; String to;
String replyTo; String replyTo;
String cc; String cc;
String bcc;
Long sent; Long sent;
Long received; Long received;
String subject; String subject;

@ -118,13 +118,35 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="6dp" android:layout_marginStart="6dp"
android:text="Cc" android:text="CC"
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true" android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tvCcTitle" app:layout_constraintStart_toEndOf="@id/tvCcTitle"
app:layout_constraintTop_toBottomOf="@id/tvReplyTo" /> 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 <eu.faircode.email.FixedTextView
android:id="@+id/tvSentTitle" android:id="@+id/tvSentTitle"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -133,7 +155,7 @@
android:textAppearance="@style/TextAppearance.AppCompat.Small" android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="bold" android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvCc" /> app:layout_constraintTop_toBottomOf="@id/tvBcc" />
<eu.faircode.email.FixedTextView <eu.faircode.email.FixedTextView
android:id="@+id/tvSent" android:id="@+id/tvSent"
@ -145,7 +167,7 @@
android:textIsSelectable="true" android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tvSentTitle" app:layout_constraintStart_toEndOf="@id/tvSentTitle"
app:layout_constraintTop_toBottomOf="@id/tvCc" /> app:layout_constraintTop_toBottomOf="@id/tvBcc" />
<eu.faircode.email.FixedTextView <eu.faircode.email.FixedTextView
android:id="@+id/tvReceivedTitle" android:id="@+id/tvReceivedTitle"

Loading…
Cancel
Save