|
|
|
@ -264,6 +264,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
private ImageButton ibAuth;
|
|
|
|
|
private ImageView ivPriorityHigh;
|
|
|
|
|
private ImageView ivPriorityLow;
|
|
|
|
|
private ImageView ivEncrypted;
|
|
|
|
|
private TextView tvFrom;
|
|
|
|
|
private TextView tvSize;
|
|
|
|
|
private TextView tvTime;
|
|
|
|
@ -382,6 +383,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ibAuth = itemView.findViewById(R.id.ibAuth);
|
|
|
|
|
ivPriorityHigh = itemView.findViewById(R.id.ivPriorityHigh);
|
|
|
|
|
ivPriorityLow = itemView.findViewById(R.id.ivPriorityLow);
|
|
|
|
|
ivEncrypted = itemView.findViewById(R.id.ivEncrypted);
|
|
|
|
|
tvFrom = itemView.findViewById(subject_top ? R.id.tvSubject : R.id.tvFrom);
|
|
|
|
|
tvSize = itemView.findViewById(R.id.tvSize);
|
|
|
|
|
tvTime = itemView.findViewById(R.id.tvTime);
|
|
|
|
@ -647,6 +649,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ibAuth.setVisibility(View.GONE);
|
|
|
|
|
ivPriorityHigh.setVisibility(View.GONE);
|
|
|
|
|
ivPriorityLow.setVisibility(View.GONE);
|
|
|
|
|
ivEncrypted.setVisibility(View.GONE);
|
|
|
|
|
tvFrom.setText(null);
|
|
|
|
|
tvSize.setText(null);
|
|
|
|
|
tvTime.setText(null);
|
|
|
|
@ -714,6 +717,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ibAuth.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
ivPriorityHigh.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
ivPriorityLow.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
ivEncrypted.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
tvFrom.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
tvSize.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
|
tvTime.setAlpha(dim ? Helper.LOW_LIGHT : 1.0f);
|
|
|
|
@ -778,6 +782,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
ibAuth.setVisibility(authentication && !authenticated ? View.VISIBLE : View.GONE);
|
|
|
|
|
ivPriorityHigh.setVisibility(EntityMessage.PRIORITIY_HIGH.equals(message.priority) ? View.VISIBLE : View.GONE);
|
|
|
|
|
ivPriorityLow.setVisibility(EntityMessage.PRIORITIY_LOW.equals(message.priority) ? View.VISIBLE : View.GONE);
|
|
|
|
|
ivEncrypted.setVisibility(message.encrypted > 0 ? View.VISIBLE : View.GONE);
|
|
|
|
|
tvFrom.setText(MessageHelper.formatAddresses(addresses, name_email, false));
|
|
|
|
|
tvFrom.setPaintFlags(tvFrom.getPaintFlags() & ~Paint.UNDERLINE_TEXT_FLAG);
|
|
|
|
|
tvSize.setText(message.totalSize == null ? null : Helper.humanReadableByteCount(message.totalSize, true));
|
|
|
|
@ -4047,6 +4052,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
|
|
|
|
same = false;
|
|
|
|
|
Log.i("drafts changed id=" + next.id);
|
|
|
|
|
}
|
|
|
|
|
if (prev.encrypted != next.encrypted) {
|
|
|
|
|
same = false;
|
|
|
|
|
Log.i("encrypted changed id=" + next.id);
|
|
|
|
|
}
|
|
|
|
|
if (prev.visible != next.visible) {
|
|
|
|
|
same = false;
|
|
|
|
|
Log.i("visible changed id=" + next.id);
|
|
|
|
|