mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-31 15:20:09 -05:00
When editing a draft, only show the BCC field if it has entries other than the auto-bcc for that account.
This makes draft editing behavior the same as new composition.
This commit is contained in:
parent
e19f742678
commit
b4635e53b5
@ -1892,10 +1892,21 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
|
|||||||
addAddresses(mCcView, message.getRecipients(RecipientType.CC));
|
addAddresses(mCcView, message.getRecipients(RecipientType.CC));
|
||||||
mCcView.setVisibility(View.VISIBLE);
|
mCcView.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
if (message.getRecipients(RecipientType.BCC).length > 0)
|
|
||||||
|
Address[] bccRecipients = message.getRecipients(RecipientType.BCC);
|
||||||
|
if (bccRecipients.length > 0)
|
||||||
{
|
{
|
||||||
addAddresses(mBccView, message.getRecipients(RecipientType.BCC));
|
addAddresses(mBccView, bccRecipients);
|
||||||
mBccView.setVisibility(View.VISIBLE);
|
String bccAddress = mAccount.getAlwaysBcc();
|
||||||
|
if (bccRecipients.length == 1 && bccAddress != null && bccAddress.equals(bccRecipients[0].toString()))
|
||||||
|
{
|
||||||
|
// If the auto-bcc is the only entry in the BCC list, don't show the Bcc fields.
|
||||||
|
mBccView.setVisibility(View.GONE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mBccView.setVisibility(View.VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read In-Reply-To header from draft
|
// Read In-Reply-To header from draft
|
||||||
|
Loading…
Reference in New Issue
Block a user