From faefc29572f7f28513698d73dac52e4431147610 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 19 Aug 2022 22:56:27 +0200 Subject: [PATCH] Report no spam instead of inbox in the spam folder --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index bf6f32e741..73b2e24fb4 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -6061,6 +6061,8 @@ public class FragmentMessages extends FragmentBase boolean more_delete = prefs.getBoolean("more_delete", false); boolean more_move = prefs.getBoolean("more_move", true); + boolean inJunk = EntityFolder.JUNK.equals(type); + int count = 0; boolean move = (more_move && count < MAX_QUICK_ACTIONS && result.canMove()); @@ -6117,6 +6119,8 @@ public class FragmentMessages extends FragmentBase if (seen) count++; + ibInbox.setImageResource(inJunk ? R.drawable.twotone_report_off_24 : R.drawable.twotone_inbox_24); + ibBatchSeen.setVisibility(seen ? View.VISIBLE : View.GONE); ibBatchUnseen.setVisibility(unseen ? View.VISIBLE : View.GONE); ibBatchSnooze.setVisibility(snooze ? View.VISIBLE : View.GONE);