Removed received time from EML viewer

pull/194/merge
M66B 3 years ago
parent e3c614f3a4
commit b31a910208

@ -88,7 +88,6 @@ public class ActivityEML extends ActivityBase {
private TextView tvCc; private TextView tvCc;
private TextView tvBcc; private TextView tvBcc;
private TextView tvSent; private TextView tvSent;
private TextView tvReceived;
private TextView tvSubject; private TextView tvSubject;
private View vSeparatorAttachments; private View vSeparatorAttachments;
private RecyclerView rvAttachment; private RecyclerView rvAttachment;
@ -119,7 +118,6 @@ public class ActivityEML extends ActivityBase {
tvCc = findViewById(R.id.tvCc); tvCc = findViewById(R.id.tvCc);
tvBcc = findViewById(R.id.tvBcc); tvBcc = findViewById(R.id.tvBcc);
tvSent = findViewById(R.id.tvSent); tvSent = findViewById(R.id.tvSent);
tvReceived = findViewById(R.id.tvReceived);
tvSubject = findViewById(R.id.tvSubject); tvSubject = findViewById(R.id.tvSubject);
vSeparatorAttachments = findViewById(R.id.vSeparatorAttachments); vSeparatorAttachments = findViewById(R.id.vSeparatorAttachments);
rvAttachment = findViewById(R.id.rvAttachment); rvAttachment = findViewById(R.id.rvAttachment);
@ -270,7 +268,6 @@ public class ActivityEML extends ActivityBase {
result.cc = MessageHelper.formatAddresses(helper.getCc()); result.cc = MessageHelper.formatAddresses(helper.getCc());
result.bcc = MessageHelper.formatAddresses(helper.getBcc()); result.bcc = MessageHelper.formatAddresses(helper.getBcc());
result.sent = helper.getSent(); result.sent = helper.getSent();
result.received = helper.getReceived();
result.subject = helper.getSubject(); result.subject = helper.getSubject();
result.parts = helper.getMessageParts(false); result.parts = helper.getMessageParts(false);
@ -303,7 +300,6 @@ public class ActivityEML extends ActivityBase {
tvCc.setText(result.cc); tvCc.setText(result.cc);
tvBcc.setText(result.bcc); 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));
tvSubject.setText(result.subject); tvSubject.setText(result.subject);
vSeparatorAttachments.setVisibility(result.parts.getAttachmentParts().size() > 0 ? View.VISIBLE : View.GONE); vSeparatorAttachments.setVisibility(result.parts.getAttachmentParts().size() > 0 ? View.VISIBLE : View.GONE);
@ -678,7 +674,6 @@ public class ActivityEML extends ActivityBase {
String cc; String cc;
String bcc; String bcc;
Long sent; Long sent;
Long received;
String subject; String subject;
MessageHelper.MessageParts parts; MessageHelper.MessageParts parts;
Spanned body; Spanned body;

@ -183,28 +183,6 @@
app:layout_constraintStart_toEndOf="@id/tvSentTitle" app:layout_constraintStart_toEndOf="@id/tvSentTitle"
app:layout_constraintTop_toBottomOf="@id/tvBcc" /> app:layout_constraintTop_toBottomOf="@id/tvBcc" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvReceivedTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/title_received"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvSent" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvReceived"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:text="Received"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tvReceivedTitle"
app:layout_constraintTop_toBottomOf="@id/tvSent" />
<eu.faircode.email.FixedTextView <eu.faircode.email.FixedTextView
android:id="@+id/tvSubject" android:id="@+id/tvSubject"
android:layout_width="0dp" android:layout_width="0dp"
@ -215,7 +193,7 @@
android:textStyle="italic" android:textStyle="italic"
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/tvReceived" /> app:layout_constraintTop_toBottomOf="@id/tvSent" />
<View <View
android:id="@+id/vSeparatorAttachments" android:id="@+id/vSeparatorAttachments"

Loading…
Cancel
Save