1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-23 18:02:15 -05:00

Revert "Potentially avoid creating new Typeface instances"

This reverts commit 9df1a3ee80.
This commit is contained in:
cketti 2015-04-04 01:46:53 +02:00
parent 017ae1d2f3
commit 83bb97b0c5

View File

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