diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index bb885667ea..fa5f43a325 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -388,10 +388,8 @@ public class FragmentMessages extends FragmentEx { public void onSelectionChanged() { swipeRefresh.setEnabled(false); if (selectionTracker.hasSelection()) { - if (messages != null) { + if (messages != null) messages.removeObservers(getViewLifecycleOwner()); - messages = null; - } fabMore.show(); } else { predicate.clearAccount(); @@ -1564,8 +1562,7 @@ public class FragmentMessages extends FragmentEx { @Override public void onLoaded() { pbWait.setVisibility(View.GONE); - if (messages != null && - messages.getValue() == null || messages.getValue().size() == 0) + if (messages.getValue() == null || messages.getValue().size() == 0) tvNoEmail.setVisibility(View.VISIBLE); }