|
|
|
@ -230,11 +230,16 @@ public class FragmentMessage extends FragmentEx {
|
|
|
|
|
tvSubject.setText(message.subject);
|
|
|
|
|
tvCount.setText(Integer.toString(message.count));
|
|
|
|
|
|
|
|
|
|
int visibility = (message.ui_seen ? Typeface.NORMAL : Typeface.BOLD);
|
|
|
|
|
tvFrom.setTypeface(null, visibility);
|
|
|
|
|
tvTime.setTypeface(null, visibility);
|
|
|
|
|
tvSubject.setTypeface(null, visibility);
|
|
|
|
|
tvCount.setTypeface(null, visibility);
|
|
|
|
|
int typeface = (message.ui_seen ? Typeface.NORMAL : Typeface.BOLD);
|
|
|
|
|
tvFrom.setTypeface(null, typeface);
|
|
|
|
|
tvTime.setTypeface(null, typeface);
|
|
|
|
|
tvSubject.setTypeface(null, typeface);
|
|
|
|
|
tvCount.setTypeface(null, typeface);
|
|
|
|
|
|
|
|
|
|
int colorUnseen = Helper.resolveColor(getContext(), message.ui_seen
|
|
|
|
|
? android.R.attr.textColorSecondary : R.attr.colorUnread);
|
|
|
|
|
tvFrom.setTextColor(colorUnseen);
|
|
|
|
|
tvTime.setTextColor(colorUnseen);
|
|
|
|
|
|
|
|
|
|
DB.getInstance(getContext()).attachment().liveAttachments(id).removeObservers(FragmentMessage.this);
|
|
|
|
|
DB.getInstance(getContext()).attachment().liveAttachments(id).observe(FragmentMessage.this,
|
|
|
|
|