mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
58050ff2a0
commit
9576f34b3c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue