Sync requires a connected account

This commit is contained in:
M66B 2019-04-30 08:28:40 +02:00
parent 651da3d3cd
commit 460db1f067
1 changed files with 4 additions and 3 deletions

View File

@ -1736,7 +1736,8 @@ public class FragmentMessages extends FragmentBase {
boolean refreshing = false;
for (TupleFolderEx folder : folders)
if (folder.sync_state != null && (folder.account == null || "connected".equals(folder.accountState))) {
if (folder.sync_state != null &&
(folder.account == null || "connected".equals(folder.accountState))) {
refreshing = true;
break;
}
@ -1786,8 +1787,8 @@ public class FragmentMessages extends FragmentBase {
}
}
boolean refreshing = (folder != null && folder.sync_state != null);
boolean refreshing = (folder != null && folder.sync_state != null &&
(folder.account == null || "connected".equals(folder.accountState)));
if (!refreshing && manual) {
manual = false;
rvMessage.scrollToPosition(0);