1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 01:36:55 +00:00

Tap to sign

This commit is contained in:
M66B 2019-12-01 18:31:13 +01:00
parent 0bfd7d7ca4
commit c0b914b6c7

View file

@ -1000,8 +1000,12 @@ public class FragmentCompose extends FragmentBase {
}
private void onMenuEncrypt() {
encrypt = (EntityMessage.PGP_SIGNENCRYPT.equals(encrypt)
? EntityMessage.ENCRYPT_NONE : EntityMessage.PGP_SIGNENCRYPT);
if (EntityMessage.PGP_SIGNENCRYPT.equals(encrypt))
encrypt = EntityMessage.PGP_SIGNONLY;
else if (EntityMessage.PGP_SIGNONLY.equals(encrypt))
encrypt = EntityMessage.ENCRYPT_NONE;
else
encrypt = EntityMessage.PGP_SIGNENCRYPT;
getActivity().invalidateOptionsMenu();
Bundle args = new Bundle();