|
|
|
@ -414,13 +414,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ivAttachments.setVisibility(message.attachments > 0 ? View.VISIBLE : View.GONE);
|
|
|
|
|
tvSubject.setText(message.subject);
|
|
|
|
|
|
|
|
|
|
if (viewType == ViewType.UNIFIED)
|
|
|
|
|
tvFolder.setText(message.accountName);
|
|
|
|
|
else
|
|
|
|
|
if (viewType == ViewType.THREAD || viewType == ViewType.SEARCH)
|
|
|
|
|
tvFolder.setText(message.folderDisplay == null
|
|
|
|
|
? Helper.localizeFolderName(context, message.folderName)
|
|
|
|
|
: message.folderDisplay);
|
|
|
|
|
tvFolder.setVisibility(viewType == ViewType.FOLDER ? View.GONE : View.VISIBLE);
|
|
|
|
|
else
|
|
|
|
|
tvFolder.setText(message.accountName);
|
|
|
|
|
tvFolder.setVisibility(viewType == ViewType.FOLDER && compact ? View.GONE : View.VISIBLE);
|
|
|
|
|
|
|
|
|
|
tvPreview.setText(message.preview);
|
|
|
|
|
tvPreview.setVisibility(preview && !TextUtils.isEmpty(message.preview) ? View.VISIBLE : View.GONE);
|
|
|
|
|