Skip account errors for folders

pull/153/head
M66B 7 years ago
parent ceb6a7f7c4
commit 03a54f6453

@ -1543,7 +1543,7 @@ public class FragmentMessages extends FragmentBase {
unseen += folder.unseen; unseen += folder.unseen;
if (folder.synchronize) if (folder.synchronize)
sync = true; sync = true;
if (folder.error != null || folder.accountError != null) if (folder.error != null)
errors = true; errors = true;
} }
@ -1603,11 +1603,8 @@ public class FragmentMessages extends FragmentBase {
rvMessage.scrollToPosition(0); rvMessage.scrollToPosition(0);
} }
String error = null; if (folder != null && folder.error != null && !refreshing && swipeRefresh.isRefreshing())
if (folder != null) Snackbar.make(view, folder.error, Snackbar.LENGTH_LONG).show();
error = (folder.error == null ? folder.accountError : folder.error);
if (error != null && !refreshing && swipeRefresh.isRefreshing())
Snackbar.make(view, error, Snackbar.LENGTH_LONG).show();
refresh = (folder != null); refresh = (folder != null);
swipeRefresh.setEnabled(pull && refresh); swipeRefresh.setEnabled(pull && refresh);

Loading…
Cancel
Save