From 87746e2aa0e2d4cb38486ac34f7ad72a3656cf1d Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 25 Nov 2019 09:25:34 +0100 Subject: [PATCH] Small fix --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 34cee8cd33..d85e03be07 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3213,10 +3213,9 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences. if (!loading && SimpleTask.getCount() == 0) pbWait.setVisibility(View.GONE); - boolean none = (messages.size() == 0 && !loading); - tvNoEmail.setVisibility(none ? View.VISIBLE : View.GONE); + tvNoEmail.setVisibility(messages.size() == 0 ? View.VISIBLE : View.GONE); tvNoEmailHint.setVisibility( - none && filterActive() && viewType != AdapterMessage.ViewType.SEARCH + messages.size() == 0 && filterActive() && viewType != AdapterMessage.ViewType.SEARCH ? View.VISIBLE : View.GONE); grpReady.setVisibility(View.VISIBLE);