From 9df1a3ee80214f48f02dc8a9d3e01441ee37a24b Mon Sep 17 00:00:00 2001 From: cketti Date: Sun, 15 Feb 2015 17:38:10 +0100 Subject: [PATCH] Potentially avoid creating new Typeface instances --- .../main/java/com/fsck/k9/fragment/MessageListFragment.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java index bf13fcdae..7f5a64035 100644 --- a/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java +++ b/k9mail/src/main/java/com/fsck/k9/fragment/MessageListFragment.java @@ -2072,7 +2072,7 @@ public class MessageListFragment extends Fragment implements OnItemClickListener } if (holder.from != null ) { - holder.from.setTypeface(Typeface.create(holder.from.getTypeface(), maybeBoldTypeface)); + holder.from.setTypeface(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(Typeface.create(holder.subject.getTypeface(), maybeBoldTypeface)); + holder.subject.setTypeface(holder.subject.getTypeface(), maybeBoldTypeface); holder.subject.setText(subject); }