diff --git a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java index 27efbad998..4934711cdf 100644 --- a/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java +++ b/app/src/main/java/eu/faircode/email/BoundaryCallbackMessages.java @@ -113,16 +113,16 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback 0) { - tvNoEmail.setVisibility(View.GONE); - grpReady.setVisibility(View.VISIBLE); - } + + if (viewType != AdapterMessage.ViewType.SEARCH) + tvNoEmail.setVisibility(messages.size() == 0 && !loading ? View.VISIBLE : View.GONE); + grpReady.setVisibility(View.VISIBLE); } };