mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-04 08:35:08 -05:00
Don't show "To: " if the only recipients were ccs and bccs.
This commit is contained in:
parent
5bde9618e4
commit
f2729fc58b
@ -107,6 +107,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
private WebView mMessageContentView;
|
private WebView mMessageContentView;
|
||||||
private LinearLayout mHeaderContainer;
|
private LinearLayout mHeaderContainer;
|
||||||
private LinearLayout mAttachments;
|
private LinearLayout mAttachments;
|
||||||
|
private LinearLayout mToContainerView;
|
||||||
private LinearLayout mCcContainerView;
|
private LinearLayout mCcContainerView;
|
||||||
private TextView mAdditionalHeadersView;
|
private TextView mAdditionalHeadersView;
|
||||||
private View mAttachmentIcon;
|
private View mAttachmentIcon;
|
||||||
@ -404,6 +405,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
mDateView.setVisibility(View.GONE);
|
mDateView.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
mTimeView.setText(time);
|
mTimeView.setText(time);
|
||||||
|
mToContainerView.setVisibility((to != null && to.length() > 0)? View.VISIBLE : View.GONE);
|
||||||
mToView.setText(to);
|
mToView.setText(to);
|
||||||
|
|
||||||
mCcContainerView.setVisibility((cc != null && cc.length() > 0)? View.VISIBLE : View.GONE);
|
mCcContainerView.setVisibility((cc != null && cc.length() > 0)? View.VISIBLE : View.GONE);
|
||||||
@ -729,6 +731,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
mFromView = (TextView)findViewById(R.id.from);
|
mFromView = (TextView)findViewById(R.id.from);
|
||||||
mToView = (TextView)findViewById(R.id.to);
|
mToView = (TextView)findViewById(R.id.to);
|
||||||
mCcView = (TextView)findViewById(R.id.cc);
|
mCcView = (TextView)findViewById(R.id.cc);
|
||||||
|
mToContainerView = (LinearLayout)findViewById(R.id.to_container);
|
||||||
mCcContainerView = (LinearLayout)findViewById(R.id.cc_container);
|
mCcContainerView = (LinearLayout)findViewById(R.id.cc_container);
|
||||||
mSubjectView = (TextView)findViewById(R.id.subject);
|
mSubjectView = (TextView)findViewById(R.id.subject);
|
||||||
defaultSubjectColor = mSubjectView.getCurrentTextColor();
|
defaultSubjectColor = mSubjectView.getCurrentTextColor();
|
||||||
|
Loading…
Reference in New Issue
Block a user