1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 09:17:58 +00:00

Fixed inline decrypt

This commit is contained in:
M66B 2019-12-04 14:15:58 +01:00
parent c1ee8e99de
commit 55fd91b7eb

View file

@ -2699,12 +2699,13 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
} }
private void onActionDecrypt(TupleMessageEx message, boolean auto) { private void onActionDecrypt(TupleMessageEx message, boolean auto) {
int encrypt = (message.encrypt == null ? EntityMessage.PGP_SIGNENCRYPT /* Inline */ : message.encrypt);
LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context); LocalBroadcastManager lbm = LocalBroadcastManager.getInstance(context);
lbm.sendBroadcast( lbm.sendBroadcast(
new Intent(FragmentMessages.ACTION_DECRYPT) new Intent(FragmentMessages.ACTION_DECRYPT)
.putExtra("id", message.id) .putExtra("id", message.id)
.putExtra("auto", auto) .putExtra("auto", auto)
.putExtra("type", (int) message.encrypt)); .putExtra("type", encrypt));
} }
private void onActionReplyMenu(TupleMessageEx message) { private void onActionReplyMenu(TupleMessageEx message) {