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

lift up font setting code to be with the rest of the initial messagelist item setting code

This commit is contained in:
Jesse Vincent 2010-11-07 00:30:17 +00:00
parent c0d9939ec6
commit 6528b2d775

View File

@ -2602,6 +2602,19 @@ public class MessageList
{ {
holder.selected.setOnCheckedChangeListener(holder); 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); view.setTag(holder);
} }
@ -2644,18 +2657,6 @@ public class MessageList
holder.flagged.setChecked(false); 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; return view;
} }