diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index eaf670de7a..7a63cebc05 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -131,6 +131,7 @@ public class AdapterMessage extends PagedListAdapter 0 ? View.VISIBLE : View.GONE); tvSubject.setText(message.subject); - tvPreview.setText(message.preview); - tvPreview.setVisibility(preview && !TextUtils.isEmpty(message.preview) ? View.VISIBLE : View.GONE); - if (viewType == ViewType.UNIFIED) tvFolder.setText(message.accountName); - else { + else tvFolder.setText(message.folderDisplay == null ? Helper.localizeFolderName(context, message.folderName) : message.folderDisplay); - tvFolder.setAlpha(message.duplicate ? 0.5f : 1.0f); - } tvFolder.setVisibility(viewType == ViewType.FOLDER ? View.GONE : View.VISIBLE); + tvPreview.setText(message.preview); + tvPreview.setVisibility(preview && !TextUtils.isEmpty(message.preview) ? View.VISIBLE : View.GONE); + if (viewType == ViewType.THREAD) { tvCount.setVisibility(View.GONE); ivThread.setVisibility(View.GONE); @@ -402,6 +418,7 @@ public class AdapterMessage extends PagedListAdapter 0 ? Typeface.BOLD : Typeface.NORMAL); tvFrom.setTypeface(null, typeface); tvTime.setTypeface(null, typeface);