From 8ebbc611e9105e6cf8fb971cff377ce532db0cae Mon Sep 17 00:00:00 2001 From: cketti Date: Wed, 21 Apr 2010 00:58:09 +0000 Subject: [PATCH] Fix NullPointerException when using the touch friendly message list. --- src/com/fsck/k9/activity/MessageList.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/com/fsck/k9/activity/MessageList.java b/src/com/fsck/k9/activity/MessageList.java index a060db899..d9ed1c4e9 100644 --- a/src/com/fsck/k9/activity/MessageList.java +++ b/src/com/fsck/k9/activity/MessageList.java @@ -2033,8 +2033,15 @@ public class MessageList } holder.subject.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSubject()); - holder.from.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); holder.date.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListDate()); + if (mTouchView) + { + holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); + } + else + { + holder.from.setTextSize(TypedValue.COMPLEX_UNIT_DIP, mFontSizes.getMessageListSender()); + } return view; }