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

Potentially avoid creating new Typeface instances

This commit is contained in:
cketti 2015-02-15 17:38:10 +01:00
parent c473ddc90a
commit 9df1a3ee80

View File

@ -2072,7 +2072,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener
} }
if (holder.from != null ) { if (holder.from != null ) {
holder.from.setTypeface(Typeface.create(holder.from.getTypeface(), maybeBoldTypeface)); holder.from.setTypeface(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(Typeface.create(holder.subject.getTypeface(), maybeBoldTypeface)); holder.subject.setTypeface(holder.subject.getTypeface(), maybeBoldTypeface);
holder.subject.setText(subject); holder.subject.setText(subject);
} }