From 6528b2d775b00448b88f8afb398dbe31d45789c8 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sun, 7 Nov 2010 00:30:17 +0000 Subject: [PATCH] lift up font setting code to be with the rest of the initial messagelist item setting code --- src/com/fsck/k9/activity/MessageList.java | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index 7b3f42312..6eb73604e 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -2602,6 +2602,19 @@ public class MessageList { holder.selected.setOnCheckedChangeListener(holder); } + holder.subject.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSubject()); + holder.date.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListDate()); + + if (mTouchView) + { + holder.preview.setLines(mPreviewLines); + holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); + + } + else + { + holder.from.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); + } view.setTag(holder); } @@ -2644,18 +2657,6 @@ public class MessageList holder.flagged.setChecked(false); } - holder.subject.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSubject()); - holder.date.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListDate()); - - if (mTouchView) - { - holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); - holder.preview.setLines(mPreviewLines); - } - else - { - holder.from.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); - } return view; }