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() {
|
public void onSelectionChanged() {
|
||||||
swipeRefresh.setEnabled(false);
|
swipeRefresh.setEnabled(false);
|
||||||
if (selectionTracker.hasSelection()) {
|
if (selectionTracker.hasSelection()) {
|
||||||
if (messages != null) {
|
if (messages != null)
|
||||||
messages.removeObservers(getViewLifecycleOwner());
|
messages.removeObservers(getViewLifecycleOwner());
|
||||||
messages = null;
|
|
||||||
}
|
|
||||||
fabMore.show();
|
fabMore.show();
|
||||||
} else {
|
} else {
|
||||||
predicate.clearAccount();
|
predicate.clearAccount();
|
||||||
|
@ -1564,8 +1562,7 @@ public class FragmentMessages extends FragmentEx {
|
||||||
@Override
|
@Override
|
||||||
public void onLoaded() {
|
public void onLoaded() {
|
||||||
pbWait.setVisibility(View.GONE);
|
pbWait.setVisibility(View.GONE);
|
||||||
if (messages != null &&
|
if (messages.getValue() == null || messages.getValue().size() == 0)
|
||||||
messages.getValue() == null || messages.getValue().size() == 0)
|
|
||||||
tvNoEmail.setVisibility(View.VISIBLE);
|
tvNoEmail.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue