Browse Source

Check for single recipient when encrypting

main
M66B 6 years ago
parent
commit
de266b1cde
39 changed files with 41 additions and 1 deletions
  1. +1
    -1
      .idea/misc.xml
  2. +3
    -0
      app/src/main/java/eu/faircode/email/FragmentCompose.java
  3. +1
    -0
      app/src/main/res/values-af/strings.xml
  4. +1
    -0
      app/src/main/res/values-ar-rBH/strings.xml
  5. +1
    -0
      app/src/main/res/values-ar-rEG/strings.xml
  6. +1
    -0
      app/src/main/res/values-ar-rSA/strings.xml
  7. +1
    -0
      app/src/main/res/values-ar-rYE/strings.xml
  8. +1
    -0
      app/src/main/res/values-ar/strings.xml
  9. +1
    -0
      app/src/main/res/values-ca/strings.xml
  10. +1
    -0
      app/src/main/res/values-cs/strings.xml
  11. +1
    -0
      app/src/main/res/values-da/strings.xml
  12. +1
    -0
      app/src/main/res/values-de/strings.xml
  13. +1
    -0
      app/src/main/res/values-el/strings.xml
  14. +1
    -0
      app/src/main/res/values-en/strings.xml
  15. +1
    -0
      app/src/main/res/values-es-rES/strings.xml
  16. +1
    -0
      app/src/main/res/values-fi/strings.xml
  17. +1
    -0
      app/src/main/res/values-fr/strings.xml
  18. +1
    -0
      app/src/main/res/values-he/strings.xml
  19. +1
    -0
      app/src/main/res/values-hu/strings.xml
  20. +1
    -0
      app/src/main/res/values-it/strings.xml
  21. +1
    -0
      app/src/main/res/values-iw/strings.xml
  22. +1
    -0
      app/src/main/res/values-ja/strings.xml
  23. +1
    -0
      app/src/main/res/values-ko/strings.xml
  24. +1
    -0
      app/src/main/res/values-nb/strings.xml
  25. +1
    -0
      app/src/main/res/values-nl/strings.xml
  26. +1
    -0
      app/src/main/res/values-no/strings.xml
  27. +1
    -0
      app/src/main/res/values-pl/strings.xml
  28. +1
    -0
      app/src/main/res/values-pt-rBR/strings.xml
  29. +1
    -0
      app/src/main/res/values-pt-rPT/strings.xml
  30. +1
    -0
      app/src/main/res/values-ro/strings.xml
  31. +1
    -0
      app/src/main/res/values-ru/strings.xml
  32. +1
    -0
      app/src/main/res/values-sr/strings.xml
  33. +1
    -0
      app/src/main/res/values-sv-rSE/strings.xml
  34. +1
    -0
      app/src/main/res/values-tr/strings.xml
  35. +1
    -0
      app/src/main/res/values-uk/strings.xml
  36. +1
    -0
      app/src/main/res/values-vi/strings.xml
  37. +1
    -0
      app/src/main/res/values-zh-rCN/strings.xml
  38. +1
    -0
      app/src/main/res/values-zh-rTW/strings.xml
  39. +1
    -0
      app/src/main/res/values/strings.xml

+ 1
- 1
.idea/misc.xml View File

@ -30,7 +30,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">


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

@ -1011,6 +1011,9 @@ 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));
Intent data = new Intent();
data.setAction(OpenPgpApi.ACTION_ENCRYPT);
data.putExtra(OpenPgpApi.EXTRA_USER_IDS, new String[]{ato[0].getAddress()});


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -162,6 +162,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -162,6 +162,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -162,6 +162,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -162,6 +162,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -162,6 +162,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Dekryptér</string>
<string name="title_from_missing">Afsender mangler</string>
<string name="title_to_missing">Modtager mangler</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Vedhæftede filer indlæses stadig</string>
<string name="title_draft_trashed">Kladde slettet</string>
<string name="title_draft_saved">Kladde gemt</string>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Entschlüsseln</string>
<string name="title_from_missing">Absender fehlt</string>
<string name="title_to_missing">Empfänger fehlt</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Anhänge werden noch geladen</string>
<string name="title_draft_trashed">Entwurf gelöscht</string>
<string name="title_draft_saved">Entwurf gespeichert</string>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Déchiffrer</string>
<string name="title_from_missing">Expéditeur manquant</string>
<string name="title_to_missing">Destinataire manquant</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Pièces jointes en cours de chargement</string>
<string name="title_draft_trashed">Brouillon supprimé</string>
<string name="title_draft_saved">Brouillon enregistré</string>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<string name="title_from_missing">Mittente mancante</string>
<string name="title_to_missing">Destinatario mancante</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Allegati ancora in fase di caricamento</string>
<string name="title_draft_trashed">Bozza cestinata</string>
<string name="title_draft_saved">Bozza salvata</string>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -142,6 +142,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -142,6 +142,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Odszyfruj</string>
<string name="title_from_missing">Brak nadawcy</string>
<string name="title_to_missing">Brak adresata</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Załączniki są wciąż ładowane</string>
<string name="title_draft_trashed">Szkice usunięte</string>
<string name="title_draft_saved">Szkic zapisany</string>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<string name="title_from_missing">Remetente faltante</string>
<string name="title_to_missing">Destinatário faltante</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Attachments still loading</string>
<string name="title_draft_trashed">Rascunho excluído</string>
<string name="title_draft_saved">Rascunho salvo</string>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -150,6 +150,7 @@
<string name="title_decrypt">Decriptare</string>
<string name="title_from_missing">Expeditor lipsă</string>
<string name="title_to_missing">Destinatar lipsă</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Atașamentele încă se încarcă</string>
<string name="title_draft_trashed">Ciornă trimisă la gunoi</string>
<string name="title_draft_saved">Ciornă salvată</string>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -150,6 +150,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -146,6 +146,7 @@
<string name="title_decrypt">Şifre çöz</string>
<string name="title_from_missing">Gönderici Eksik</string>
<string name="title_to_missing">Alıcı eksik</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">Ekler hala yükleniyor</string>
<string name="title_draft_trashed">Taslak çöp kutusuna atıldı</string>
<string name="title_draft_saved">Taslak kaydedildi</string>


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

@ -154,6 +154,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -142,6 +142,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -142,6 +142,7 @@
<string name="title_decrypt">解密</string>
<string name="title_from_missing">缺少发件人</string>
<string name="title_to_missing">缺少收件人</string>
<string name="title_to_one">One recipient expected</string>
<string name="title_attachments_missing">附件加载中</string>
<string name="title_draft_trashed">草稿已删除</string>
<string name="title_draft_saved">草稿已保存</string>


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

@ -142,6 +142,7 @@
<string name="title_decrypt">Decrypt</string>
<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>


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

@ -173,6 +173,7 @@
<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