From db41c5d85dd6848ea7c7425665d028f75a56bb4a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 27 Dec 2018 13:40:37 +0000 Subject: [PATCH] Prevent flagging of outbox messages --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index 55f52ab0cb..74efc00911 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -418,7 +418,7 @@ public class AdapterMessage extends RecyclerView.Adapter 0); ivFlagged.setImageResource(flagged ? R.drawable.baseline_star_24 : R.drawable.baseline_star_border_24); ivFlagged.setImageTintList(ColorStateList.valueOf(flagged ? colorAccent : textColorSecondary)); - ivFlagged.setVisibility(View.VISIBLE); + ivFlagged.setVisibility(message.uid == null ? View.GONE : View.VISIBLE); tvFrom.setText(MessageHelper.getFormattedAddresses(outgoing ? message.to : message.from, false)); tvSize.setText(message.size == null ? null : Helper.humanReadableByteCount(message.size, true));