From 134b1f1b78f2863c26a32c6c3a1ece12e67bce7e Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Sat, 24 Nov 2012 14:42:57 -0500 Subject: [PATCH] Hide the threaded view wrapper to get slightly better spacing --- src/com/fsck/k9/fragment/MessageListFragment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/fragment/MessageListFragment.java b/src/com/fsck/k9/fragment/MessageListFragment.java index 79f1baf78..5ed8a5c47 100644 --- a/src/com/fsck/k9/fragment/MessageListFragment.java +++ b/src/com/fsck/k9/fragment/MessageListFragment.java @@ -1590,6 +1590,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick holder.preview.setLines(mPreviewLines); holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_SP, mFontSizes.getMessageListPreview()); holder.threadCount = (TextView) view.findViewById(R.id.thread_count); + holder.threadCountWrapper = (View) view.findViewById(R.id.thread_count_wrapper); holder.selected = (CheckBox) view.findViewById(R.id.selected_checkbox); if (mCheckboxes) { @@ -1710,9 +1711,9 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick // Thread count if (threadCount > 1) { holder.threadCount.setText(Integer.toString(threadCount)); - holder.threadCount.setVisibility(View.VISIBLE); + holder.threadCountWrapper.setVisibility(View.VISIBLE); } else { - holder.threadCount.setVisibility(View.GONE); + holder.threadCountWrapper.setVisibility(View.GONE); } CharSequence beforePreviewText = (mSenderAboveSubject) ? subject : displayName; @@ -1794,6 +1795,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick public TextView date; public View chip; public TextView threadCount; + public View threadCountWrapper; public CheckBox selected; public int position = -1;