Debug: show thread ID

pull/194/merge
M66B 3 years ago
parent cff4206229
commit ce38948d19

@ -391,6 +391,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private TextView tvStoredTitle;
private TextView tvSizeExTitle;
private TextView tvLanguageTitle;
private TextView tvThreadTitle;
private TextView tvSubmitter;
private TextView tvDeliveredTo;
@ -405,6 +406,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
private TextView tvStored;
private TextView tvSizeEx;
private TextView tvLanguage;
private TextView tvThread;
private TextView tvSubjectEx;
private TextView tvFlags;
@ -761,6 +763,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvStoredTitle = vsBody.findViewById(R.id.tvStoredTitle);
tvSizeExTitle = vsBody.findViewById(R.id.tvSizeExTitle);
tvLanguageTitle = vsBody.findViewById(R.id.tvLanguageTitle);
tvThreadTitle = vsBody.findViewById(R.id.tvThreadTitle);
tvSubmitter = vsBody.findViewById(R.id.tvSubmitter);
tvDeliveredTo = vsBody.findViewById(R.id.tvDeliveredTo);
@ -775,6 +778,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvStored = vsBody.findViewById(R.id.tvStored);
tvSizeEx = vsBody.findViewById(R.id.tvSizeEx);
tvLanguage = vsBody.findViewById(R.id.tvLanguage);
tvThread = vsBody.findViewById(R.id.tvThread);
tvSubjectEx = vsBody.findViewById(R.id.tvSubjectEx);
tvFlags = vsBody.findViewById(R.id.tvFlags);
@ -1557,6 +1561,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvStoredTitle.setVisibility(View.GONE);
tvSizeExTitle.setVisibility(View.GONE);
tvLanguageTitle.setVisibility(View.GONE);
tvThreadTitle.setVisibility(View.GONE);
tvSubmitter.setVisibility(View.GONE);
tvDeliveredTo.setVisibility(View.GONE);
@ -1571,6 +1576,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvStored.setVisibility(View.GONE);
tvSizeEx.setVisibility(View.GONE);
tvLanguage.setVisibility(View.GONE);
tvThread.setVisibility(View.GONE);
tvSubjectEx.setVisibility(View.GONE);
tvFlags.setVisibility(View.GONE);
@ -2253,6 +2259,11 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
tvLanguage.setVisibility(showLanguage ? View.VISIBLE : View.GONE);
tvLanguage.setText(message.language == null ? null : new Locale(message.language).getDisplayLanguage());
boolean show_thread = (show_addresses && (BuildConfig.DEBUG || debug));
tvThreadTitle.setVisibility(show_thread ? View.VISIBLE : View.GONE);
tvThread.setVisibility(show_thread ? View.VISIBLE : View.GONE);
tvThread.setText(message.thread);
tvSubjectEx.setVisibility(show_addresses ? View.VISIBLE : View.GONE);
tvSubjectEx.setText(message.subject);
if (subject_italic)

@ -447,6 +447,31 @@
app:layout_constraintStart_toEndOf="@+id/barrier_addresses"
app:layout_constraintTop_toBottomOf="@id/tvSizeEx" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvThreadTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:labelFor="@+id/tvThread"
android:text="@string/title_thread"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textStyle="bold"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvLanguage" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvThread"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="6dp"
android:layout_marginEnd="6dp"
android:text="123"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/barrier_addresses"
app:layout_constraintTop_toBottomOf="@id/tvLanguage" />
<androidx.constraintlayout.widget.Barrier
android:id="@+id/barrier_addresses"
android:layout_width="wrap_content"
@ -458,7 +483,7 @@
tvCcTitle,tvBccTitle,
tvIdentityTitle,
tvSentTitle,tvReceivedTitle,tvStoredTitle,
tvSizeExTitle, tvLanguageTitle" />
tvSizeExTitle,tvLanguageTitle,tvThreadTitle" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvSubjectEx"
@ -471,7 +496,7 @@
android:textIsSelectable="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvLanguage" />
app:layout_constraintTop_toBottomOf="@id/tvThread" />
<eu.faircode.email.FixedTextView
android:id="@+id/tvFlags"

@ -1247,6 +1247,7 @@
<string name="title_stored">Stored:</string>
<string name="title_size">Size:</string>
<string name="title_language">Language:</string>
<string name="title_thread" translatable="false">Thread:</string>
<string name="title_subject">Subject:</string>
<string name="title_attachment">Attachment:</string>
<string name="title_body_hint">Your message</string>

Loading…
Cancel
Save