From d1ce1b6e7f5982332573e2bcdf386b38224cbcb9 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 28 Apr 2020 14:48:50 +0200 Subject: [PATCH] Show EML/BCC --- .../java/eu/faircode/email/ActivityEML.java | 5 ++++ app/src/main/res/layout/activity_eml.xml | 28 +++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ActivityEML.java b/app/src/main/java/eu/faircode/email/ActivityEML.java index 86a3c0a035..bdaa58cc4d 100644 --- a/app/src/main/java/eu/faircode/email/ActivityEML.java +++ b/app/src/main/java/eu/faircode/email/ActivityEML.java @@ -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; diff --git a/app/src/main/res/layout/activity_eml.xml b/app/src/main/res/layout/activity_eml.xml index 98062f3b43..c2934e74bb 100644 --- a/app/src/main/res/layout/activity_eml.xml +++ b/app/src/main/res/layout/activity_eml.xml @@ -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" /> + + + + + app:layout_constraintTop_toBottomOf="@id/tvBcc" /> + app:layout_constraintTop_toBottomOf="@id/tvBcc" />