1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-30 13:12:25 -05:00

Hide the threaded view wrapper to get slightly better spacing

This commit is contained in:
Jesse Vincent 2012-11-24 14:42:57 -05:00
parent 212a331313
commit 134b1f1b78

View File

@ -1590,6 +1590,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
holder.preview.setLines(mPreviewLines); holder.preview.setLines(mPreviewLines);
holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_SP, mFontSizes.getMessageListPreview()); holder.preview.setTextSize(TypedValue.COMPLEX_UNIT_SP, mFontSizes.getMessageListPreview());
holder.threadCount = (TextView) view.findViewById(R.id.thread_count); 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); holder.selected = (CheckBox) view.findViewById(R.id.selected_checkbox);
if (mCheckboxes) { if (mCheckboxes) {
@ -1710,9 +1711,9 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
// Thread count // Thread count
if (threadCount > 1) { if (threadCount > 1) {
holder.threadCount.setText(Integer.toString(threadCount)); holder.threadCount.setText(Integer.toString(threadCount));
holder.threadCount.setVisibility(View.VISIBLE); holder.threadCountWrapper.setVisibility(View.VISIBLE);
} else { } else {
holder.threadCount.setVisibility(View.GONE); holder.threadCountWrapper.setVisibility(View.GONE);
} }
CharSequence beforePreviewText = (mSenderAboveSubject) ? subject : displayName; CharSequence beforePreviewText = (mSenderAboveSubject) ? subject : displayName;
@ -1794,6 +1795,7 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
public TextView date; public TextView date;
public View chip; public View chip;
public TextView threadCount; public TextView threadCount;
public View threadCountWrapper;
public CheckBox selected; public CheckBox selected;
public int position = -1; public int position = -1;