Disable encrypt/decrypt in outbox

This commit is contained in:
M66B 2020-05-06 13:12:16 +02:00
parent 3dc0a2f4a7
commit f7e19fd69d
1 changed files with 4 additions and 3 deletions

View File

@ -2060,9 +2060,10 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
!EntityMessage.SMIME_SIGNENCRYPT.equals(message.encrypt)) !EntityMessage.SMIME_SIGNENCRYPT.equals(message.encrypt))
? R.drawable.baseline_lock_24 : R.drawable.baseline_lock_open_24 ? R.drawable.baseline_lock_24 : R.drawable.baseline_lock_open_24
); );
ibDecrypt.setVisibility(args.getBoolean("inline_encrypted") || ibDecrypt.setVisibility(!EntityFolder.OUTBOX.equals(message.folderType) &&
(args.getBoolean("inline_encrypted") ||
EntityMessage.PGP_SIGNENCRYPT.equals(message.ui_encrypt) || EntityMessage.PGP_SIGNENCRYPT.equals(message.ui_encrypt) ||
EntityMessage.SMIME_SIGNENCRYPT.equals(message.ui_encrypt) EntityMessage.SMIME_SIGNENCRYPT.equals(message.ui_encrypt))
? View.VISIBLE : View.GONE); ? View.VISIBLE : View.GONE);
boolean signed_data = args.getBoolean("signed_data"); boolean signed_data = args.getBoolean("signed_data");