Browse Source

Encrypt multiple recipients

main
M66B 6 years ago
parent
commit
7d86e94613
2 changed files with 4 additions and 4 deletions
  1. +4
    -3
      app/src/main/java/eu/faircode/email/FragmentCompose.java
  2. +0
    -1
      app/src/main/res/values/strings.xml

+ 4
- 3
app/src/main/java/eu/faircode/email/FragmentCompose.java View File

@ -1011,12 +1011,13 @@ public class FragmentCompose extends FragmentEx {
if (openPgpConnection == null || !openPgpConnection.isBound())
throw new IllegalArgumentException(getString(R.string.title_no_openpgp));
if (ato.length != 1)
throw new IllegalArgumentException(context.getString(R.string.title_to_one));
List<String> tos = new ArrayList<>();
for (InternetAddress ia : ato)
tos.add(ia.getAddress());
Intent data = new Intent();
data.setAction(OpenPgpApi.ACTION_ENCRYPT);
data.putExtra(OpenPgpApi.EXTRA_USER_IDS, new String[]{ato[0].getAddress()});
data.putExtra(OpenPgpApi.EXTRA_USER_IDS, tos.toArray(new String[0]));
data.putExtra(OpenPgpApi.EXTRA_REQUEST_ASCII_ARMOR, true);
Multipart multipart = new MimeMultipart();


+ 0
- 1
app/src/main/res/values/strings.xml View File

@ -178,7 +178,6 @@
<string name="title_from_missing">Sender missing</string>
<string name="title_to_missing">Recipient missing</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Attachments still loading</string>
<string name="title_draft_trashed">Draft trashed</string>
<string name="title_draft_saved">Draft saved</string>


Loading…
Cancel
Save