1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Make sure to keep font meta info on view recycling

This commit is contained in:
Frank Du 2014-12-20 14:50:15 -08:00
parent 7752f42db6
commit c473ddc90a

View File

@ -2072,7 +2072,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
}
if (holder.from != null ) {
holder.from.setTypeface(null, maybeBoldTypeface);
holder.from.setTypeface(Typeface.create(holder.from.getTypeface(), maybeBoldTypeface));
if (mSenderAboveSubject) {
holder.from.setCompoundDrawablesWithIntrinsicBounds(
statusHolder, // left
@ -2095,7 +2095,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
null); // bottom
}
holder.subject.setTypeface(null, maybeBoldTypeface);
holder.subject.setTypeface(Typeface.create(holder.subject.getTypeface(), maybeBoldTypeface));
holder.subject.setText(subject);
}